Problem installing mxnet package in R

mxnet

the package is not installed in r (on windows 10) when I follow the steps given in its documentation.

install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")

      

It gives the following output:

Installing the package to the folder "C: /Users/Ashish/Documents/R/win-library/3.3 (because" lib is unspecified ") Warning in install.packages: Cannot open url ' http://dmlc.github.io/drat /bin/windows/contrib/3.3/PACKAGES.gz ': HTTP status was' 404 Not Found 'Warning in install.packages: can not open url' http://dmlc.github.io/drat/bin/ windows / contrib / 3.3 / PACKAGES ': HTTP status was "404 Not Found" Warning in install.packages : Cannot access index for repository http://dmlc.github.io/drat/bin/windows/contrib/3.3 : fails open url ' http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES'A package that is only available in source form, and may require compilation of C / C ++ / Fortran:' mxnet Do you want to try to install them from sources? y / n: y install source package 'mxnet

try URL ' http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz ' Warning in install.packages: URL cannot be opened ' http://dmlc.github.io/drat/src /contrib/mxnet_0.5.tar.gz ': HTTP status was "404 Not Found" Error in download.file (url, destfile, method, mode = "wb", ...): Unable to open URL' http : //dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz 'Warning in install.packages: package download' mxnet failed

Please help me to solve this problem. I am using R version 3.3.0. Is there any other way to set it to R?

+2


source to share


5 answers


I managed to install it successfully by first downloading its zip file from the following link

https://github.com/dmlc/drat/tree/gh-pages/bin/windows/contrib/3.2



and then install it using RStudio.

I hope this answer helps someone else to face the same problem.

+1


source


I had the same problem and was able to solve it by following the instructions on this page and choosing the correct OS, Language and CPU / GPU options: http://mxnet.io/get_started/install.html



+1


source


You can try using a different repo in repos

.

Otherwise, you can download the drat package along with the dependencies and install it manually.

Check if these URLs are accessible from your computer or not.

The following links will be helpful for you:
http://mxnet-bing.readthedocs.io/en/latest/build.html#r-package-installation https://github.com/dmlc/mxnet/issues/1085

0


source


A more up-to-date Installation Guide is currently located : http://mxnet.io/get_started/setup.html#installing-mxnet

I found the paragraph on installing R package on Windows to be well written.

By the way, the command install.packages("mxnet")

installs a very long toolchain, so it might happen that the package is not currently indexed correctly in the dmlc-repo (i.e. because it was just updated to a newer version on CRAN): Error: package <pkgname> is not available for R version 3.3.1

So you can install the "offending" package from CRAN (or download the source code and use something like that install.packages(file.choose(), repos = NULL, type = "source")

) and then continue with another call install.packages("mxnet")

.

0


source


try these commands to install mxnet package: -

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

      

0


source







All Articles