airoldilab / sgd

An R package for large scale estimation with stochastic gradient descent
62 stars 18 forks source link

Error when installing the latest development version #82

Closed MarcinKosinski closed 9 years ago

MarcinKosinski commented 9 years ago

There appears that bigmemory package is not compatible with 3.2.1 R version but when I install package normally from CRAN the installation proceeds normally without errors.

> if (packageVersion("devtools") < 1.6) {
+     install.packages("devtools")
+ }
> devtools::install_github("airoldilab/sgd")
Downloading github repo airoldilab/sgd@master
Installing sgd
Skipping 1 packages not available: bigmemory
Installing 2 packages: BH, RcppArmadillo
package ‘BH’ successfully unpacked and MD5 sums checked
package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
"D:/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore CMD INSTALL  \
  "C:/Users/Marcin/AppData/Local/Temp/RtmpQ3lamb/devtools160835de6246/airoldilab-sgd-ad88619"  \
  --library="C:/Users/Marcin/Documents/R/win-library/3.2"  \
  --install-tests 

ERROR: dependency 'bigmemory' is not available for package 'sgd'
* removing 'C:/Users/Marcin/Documents/R/win-library/3.2/sgd'
Error: Command failed (1)
> install.packages("bigmemory.sri")
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/bigmemory.sri_0.1.3.zip'
Content type 'application/zip' length 17735 bytes (17 KB)
downloaded 17 KB

package ‘bigmemory.sri’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Marcin\AppData\Local\Temp\RtmpQ3lamb\downloaded_packages
> if (packageVersion("devtools") < 1.6) {
+     install.packages("devtools")
+ }
> devtools::install_github("airoldilab/sgd")
Downloading github repo airoldilab/sgd@master
Installing sgd
Skipping 1 packages not available: bigmemory
"D:/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save  \
  --no-restore CMD INSTALL  \
  "C:/Users/Marcin/AppData/Local/Temp/RtmpQ3lamb/devtools16081a489ad/airoldilab-sgd-ad88619"  \
  --library="C:/Users/Marcin/Documents/R/win-library/3.2"  \
  --install-tests 

ERROR: dependency 'bigmemory' is not available for package 'sgd'
* removing 'C:/Users/Marcin/Documents/R/win-library/3.2/sgd'
Error: Command failed (1)
> install.packages("bigmemory")
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘bigmemory’ is not available (for R version 3.2.2)
> install.packages("sgd")
Installing package into ‘C:/Users/Marcin/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/sgd_0.1.zip'
Content type 'application/zip' length 585130 bytes (571 KB)
downloaded 571 KB

package ‘sgd’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Marcin\AppData\Local\Temp\RtmpQ3lamb\downloaded_packages
> library(sgd)
MarcinKosinski commented 9 years ago

From CRAn: https://cran.r-project.org/web/packages/bigmemory/index.html

OS_type: unix

So it looks like this won't work on Windows?

dustinvtran commented 9 years ago

It seems so. From their main page, they say they're working on Windows compatibility. The bigmemory package should be optional to this package though, since it's not strictly necessary. I'll try to add the optional support for that soon.

MarcinKosinski commented 9 years ago

Thanks.