Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[R] Script installation for R #3803

Merged
merged 15 commits into from
Nov 23, 2016

Conversation

miguelgfierro
Copy link
Contributor

Quick installation of MXNet for R via a bash script. Also updated python script


echo "Installing R dependencies. This can take few minutes..."
sudo Rscript -e "install.packages('devtools', repo = 'https://cran.rstudio.com')"
sudo Rscript -e "install.packages(c('Rcpp', 'DiagrammeR', 'data.table', 'jsonlite', 'magrittr', 'stringr', 'roxygen2'), repos = 'https://cran.rstudio.com')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you change this line into these lines below. We use devtools, because it will install all dependencies automatically. There might be more dependencies in the future.

Rscript -e "install.packages('devtools', repo = 'https://cran.rstudio.com')"
cd R-package
Rscript -e "library(devtools); library(methods); options(repos=c(CRAN='https://cran.rstudio.com')); install_deps(dependencies = TRUE)"
cd ..

sudo apt-get update
sudo apt-get install -y build-essential libatlas-base-dev libopencv-dev

echo "Installing MXNet core. This can take few minutes..."
cd ~/MXNet/mxnet/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz revert this

@miguelgfierro
Copy link
Contributor Author

I changed in both scripts the MXNET_HOME for consistency

@thirdwing
Copy link
Contributor

I will merge this if @miguelgfierro can fix the conflict.

@thirdwing thirdwing merged commit 2397ab4 into apache:master Nov 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants