Issue in installation of mxnet package in R

Naimish Agarwal picture Naimish Agarwal · May 9, 2016 · Viewed 7.5k times · Source

mxnet package is not installing 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 result

Installing package into ‘C:/Users/Ashish/Documents/R/win-library/3.3’ (as ‘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 : cannot open URL 'http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES': HTTP status was '404 Not Found' Warning in install.packages : unable to access index for repository http://dmlc.github.io/drat/bin/windows/contrib/3.3: cannot open URL 'http://dmlc.github.io/drat/bin/windows/contrib/3.3/PACKAGES' Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘mxnet’ Do you want to attempt to install these from sources? y/n: y installing the source package ‘mxnet’

trying URL 'http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz' Warning in install.packages : cannot open URL '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", ...) : cannot open URL 'http://dmlc.github.io/drat/src/contrib/mxnet_0.5.tar.gz' Warning in install.packages : download of package ‘mxnet’ failed

Kindly help me resolve this issue. I'm using R version 3.3.0. Is there any other way of installing it in R?

Answer

Naimish Agarwal picture Naimish Agarwal · May 9, 2016

I was able 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 installing it using RStudio.

I hope this answer will help anyone else facing the same problem.