...
Execute these commands in order from the MXNet home folder. This will generate a file called "mxnet_<version>.tgz" in your local folder
Code Block language bash theme Eclipse linenumbers true mkdir -p R-package/inst/libs cp src/io/image_recordio.h R-package/src cp -rf lib/libmxnet.so R-package/inst/libs mkdir -p R-package/inst/include cp -rf include/* R-package/inst/include cp -rf 3rdparty/dmlc-core/include/* R-package/inst/include/ cp -rf 3rdparty/tvm/nnvm/include/* R-package/inst/include Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cloud.r-project.org/'));install_deps(pkg='R-package', dependencies = TRUE)" echo "import(Rcpp)" >> R-package/NAMESPACE R CMD INSTALL R-package Rscript -e "devtools::install_version('roxygen2',version='5.0.1', repos='https://cloud.r-project.org/',quiet=TRUE)" Rscript -e "require(mxnet); mxnet:::mxnet.export('R-package'); warnings()" Rscript -e "require(roxygen2); roxygen2::roxygenise('R-package'); warnings()" R CMD INSTALL --build R-package
You can view the contents of the generated tgz file by: tar -tf mxnet_<version>.tgztgz
Verify the contents of the package and upload it in the corresponding S3 bucket. Once uploaded on the S3 bucket, we can install and verify using the following commands from an R console.
Code Block language bash theme RDark linenumbers true cran <- getOption("repos") cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/" options(repos = cran) install.packages("mxnet”) library(mxnet) a <- mx.nd.ones(c(2,3), ctx = mx.cpu()) b <- a * 2 + 1 b packageVersion('mxnet') # Should print the version number. eg : ‘1.4.0’
...
Take the package and upload it in the specific S3 bucket.
Where X is 100, 90, 91 or 92 depended on the CUDA version.
...