diff options
author | ist <ist@istnightly3> | 2014-10-16 11:15:46 +0200 |
---|---|---|
committer | ist <ist@istnightly3> | 2014-10-16 11:15:46 +0200 |
commit | 731a8dd7528c8159495a70753844db4a4011fba5 (patch) | |
tree | 4c76f5fa207e7a4a4fdf1ffaf745edb38279c8ff | |
parent | 62f7f2f23fc0ae87080edd0db4e0e308eccc9116 (diff) |
Fixed env variable for R install.
-rwxr-xr-x | bin/algorithm-install | 1 | ||||
-rw-r--r-- | bin/packs.R | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bin/algorithm-install b/bin/algorithm-install index 9fbd253..6644366 100755 --- a/bin/algorithm-install +++ b/bin/algorithm-install @@ -81,6 +81,7 @@ fi if ! $R_DONE; then export R_LIBS="$R_DEST" # To install non-global + export CRAN_MIRROR="$R_MIRROR" # To install non-global cmd="$R CMD BATCH bin/packs.R" && run_cmd "$cmd" "R packages" fi diff --git a/bin/packs.R b/bin/packs.R index a4d61a0..c8196af 100644 --- a/bin/packs.R +++ b/bin/packs.R @@ -3,5 +3,5 @@ # set mirror to avoid questioning the user -options(repos=Sys.getenv("R_MIRROR")) +options(repos=Sys.getenv("CRAN_MIRROR")) install.packages(c("caret", "doMC", "e1071", "foreach", "iterators", "kernlab", "multicore", "plyr", "reshape", "randomForest", "RANN", "TunePareto"),lib=Sys.getenv("R_LIBS")) |