summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2014-10-17 12:15:39 +0200
committermguetlein <martin.guetlein@gmail.com>2014-10-17 12:15:39 +0200
commit468929b42ead1e3e80040e28e0a549db67e8593d (patch)
treedac65b727b789c8a948e3fbc8eb42df06f74453a
parent498292b6c29f068d6297d8b1697ed4eb3614b006 (diff)
parent731a8dd7528c8159495a70753844db4a4011fba5 (diff)
Merge branch 'development' of ssh://github.com/opentox/algorithm into development
-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"))