This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[R] Script installation for R #3803
Merged
thirdwing
merged 15 commits into
apache:master
from
miguelgfierro:script_installation_r
Nov 23, 2016
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9b763f9
added r installation script
miguelgfierro c0ebca9
updated python and r scripts
miguelgfierro 895fcb3
updated python script
miguelgfierro c0ce6a9
added the correct pythonpath to bashrc
miguelgfierro c0b25a8
Merge branch 'master' into script_installation_r
miguelgfierro a921fb3
added suggestions by KK and piiswrong
miguelgfierro 09109a0
Merge branch 'master' into script_installation_r
f186849
Merge branch 'master' into script_installation_r
4f35581
Merge branch 'master' into script_installation_r
7406799
fixed conflicts
miguelgfierro a78ee64
Merge branch 'script_installation_r' of https://github.com/miguelgfie…
miguelgfierro 6ec4866
Merge branch 'master' into script_installation_r
1d41c25
fix conflicts second time
miguelgfierro fbcb9ef
Merge branch 'master' into script_installation_r
bdf2423
Merge branch 'master' into script_installation_r
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
###################################################################### | ||
# This script installs MXNet for R along with all required dependencies on a Ubuntu Machine. | ||
# We recommend to install Microsoft RServer together with Intel MKL library for optimal performance | ||
# More information can be found here: | ||
# https://blogs.technet.microsoft.com/machinelearning/2016/09/15/building-deep-neural-networks-in-the-cloud-with-azure-gpu-vms-mxnet-and-microsoft-r-server/ | ||
# Tested on Ubuntu 14.0+ distro. | ||
# This script assumes that R is already installed in the system | ||
###################################################################### | ||
set -e | ||
|
||
MXNET_HOME="$(dirname "$PWD")" | ||
echo "MXNet root folder: $MXNET_HOME" | ||
|
||
echo "Building MXNet core. This can take few minutes..." | ||
cd $MXNET_HOME | ||
make -j$(nproc) | ||
|
||
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')" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest you change this line into these lines below. We use
|
||
|
||
echo "Compiling R package. This can take few minutes..." | ||
make rpkg | ||
|
||
echo "Installing R package..." | ||
sudo R CMD INSTALL mxnet_0.7.tar.gz | ||
|
||
echo "Done! MXNet for R installation is complete. Go ahead and explore MXNet with R :-)" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz revert this