diff options
-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")) |