blob: 57cacc88a746f49b66ddc69dfb7acb43ec2b78ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/dependencies/common/install-packages b/dependencies/common/install-packages
index e0d184e5f0..658fd31fd4 100755
--- a/dependencies/common/install-packages
+++ b/dependencies/common/install-packages
@@ -104,7 +104,7 @@ fi
# install packages needed to run tests
for RPKG in rmarkdown renv testthat xml2 yaml; do
- RINSTALLCMD="if("'!'"require($RPKG, quietly = TRUE)) { install.packages('$RPKG', lib='$RPKGLIB', repos='https://cran.rstudio.com/') }"
+ RINSTALLCMD="if("'!'"require($RPKG, quietly = TRUE)) { options(Ncpus = @@proc_num@@ ); install.packages('$RPKG', lib='$RPKGLIB', repos='https://cran.rstudio.com/') }"
echo "> $RINSTALLCMD"
Rscript -e "$RINSTALLCMD"
done
|