简体   繁体   中英

How to install the R package for mxnet?

I used to work with the mxnet package in R. I have an old installation and I can use it in R 3.4x but now I want to switch to the newest R version (R 3.5 locally) and I would love to use it on rstudio.cloud. The package was on CRAN (wasn't it?) Now I try to follow the instructions from the packgage page :

  cran <- getOption("repos")
  cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/"
  options(repos = cran)
  install.packages("mxnet")

and I get the following result:

installing the source package 'mxnet'

trying URL ' https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_0.10.1.tar.gz ' Warning in install.packages : cannot open URL ' https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_0.10.1.tar.gz ': HTTP status was '404 Not Found' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL ' https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/src/contrib/mxnet_0.10.1.tar.gz ' Warning in install.packages : download of package 'mxnet' failed

Is there a way to install mxnet for R from the R command line (so I can try it in the cloud as well)? or I have to switch to keras entirely ....:)

Any help is appreciated.

my sessioninfo is:

R version 3.5.0 (2018-04-23) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C [5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils
datasets methods base

other attached packages: [1] xgboost_0.6.4.1

loaded via a namespace (and not attached): [1] drat_0.1.4
compiler_3.5.0 magrittr_1.5 Matrix_1.2-14
tools_3.5.0 [6] withr_2.1.2 yaml_2.1.18
memoise_1.1.0 stringi_1.1.7 grid_3.5.0 [11] data.table_1.10.4-3 digest_0.6.15 pacman_0.4.6
devtools_1.13.5 lattice_0.20-35

I answer my own question as it was really hard for me to find the answer and others could benefit.

The following line installs the CPU version:

install.packages("https://github.com/jeremiedb/mxnet_winbin/raw/master/mxnet.zip", repos = NULL)

I found it in the Q & A forum .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM