MXNet package installation in R
Asked Answered
B

3

7

I get plenty of trouble when trying to install MXNet package in R I am using the 3.4.0 version of R and I am on windows 10 CPU intel i3, 64bits x64-based processor.

I get prompted:

install.packages("mxnet")
Warning in install.packages :
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found'
Installing package into ‘C:/Users/los40/OneDrive/Documentos/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘mxnet’ is not available (for R version 3.4.0)
Warning in install.packages :
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found'

I've tried downloading the .rar files provided here. I decompress one and get the folder where it says "R package" attempting to install it by using:

> install.packages('R.package.rar', lib='D:/mxnet',repos = NULL)
Error in install.packages : type == "both" cannot be used with 'repos = NULL'
> install.packages('R.package.rar', lib='D:/mxnet')
Warning in install.packages :
  package ‘R.package.rar’ is not available (for R version 3.4.0)

The guide found in http://mxnet.io/get_started/windows_setup.html makes no sense to me since I cannot find the file required in the steps for installing the prebuild package on windows called setupenv.cmd

Bouncing answered 9/5, 2017 at 14:23 Comment(4)
Previously asked and answered here: #37110669Waters
Ye, I've been checking that post and I can't get the solutionBouncing
Have you tried : install.packages("drat", repos="cran.rstudio.com") drat:::addRepo("dmlc") install.packages("mxnet")Waters
It tells me "drat" is not available for 3.4.0 versionBouncing
N
17

For mxnet package install in R using this command for only CPU

cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet",dependencies = T)
library(mxnet)
Narcoanalysis answered 24/8, 2017 at 6:6 Comment(3)
Getting cannot open URL 'https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/src/contrib/mxnet_1.3.0.tar.gz': HTTP status was '404 Not Found'Painful
Most likely the package is no longer available at that link.Gainsay
Can you please take a look at my question? #65496446 thanksPistachio
H
0

Please try the following line:

cran <- getOption("repos")
cran["dmlc"] <- "https://s3.amazonaws.com/mxnet-r/"
options(repos = cran)
install.packages("mxnet")
Hautemarne answered 13/6, 2017 at 0:42 Comment(2)
I get this: > install.packages("mxnet", repos="dmlc.ml/drat/") Warning in install.packages : cannot open URL 'stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found' Installing package into ‘C:/Users/los40/OneDrive/Documentos/R/win-library/3.4’ (as ‘lib’ is unspecified) Warning in install.packages : InternetOpenUrl failed: 'The host name in the certificate is invalid or does not match' Warning in install.packages : InternetOpenUrl failed: 'The host name in the certificate is invalid or does not match...Bouncing
trying URL 's3.amazonaws.com/mxnet-r/src/contrib/mxnet_0.10.1.tar.gz' Warning in install.packages : cannot open URL 's3.amazonaws.com/mxnet-r/src/contrib/mxnet_0.10.1.tar.gz': HTTP status was '403 Forbidden' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL 's3.amazonaws.com/mxnet-r/src/contrib/mxnet_0.10.1.tar.gz' Warning in install.packages : download of package ‘mxnet’ failedGainsay
K
-1

For windows, if you want to install mxnet. Use the below commmand:

cran <- getOption("repos")
cran["dmlc"] <- "https://s3-us-west-2.amazonaws.com/apache-mxnet/R/CRAN/"
options(repos = cran)
install.packages("mxnet",dependencies = T)
library(mxnet)
Knobby answered 18/10, 2018 at 6:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.