summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorist <ist@istnightly3>2014-10-16 11:15:46 +0200
committerist <ist@istnightly3>2014-10-16 11:15:46 +0200
commit731a8dd7528c8159495a70753844db4a4011fba5 (patch)
tree4c76f5fa207e7a4a4fdf1ffaf745edb38279c8ff
parent62f7f2f23fc0ae87080edd0db4e0e308eccc9116 (diff)
Fixed env variable for R install.
-rwxr-xr-xbin/algorithm-install1
-rw-r--r--bin/packs.R2
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"))