ayaports/user/rstudio-desktop/cran_multithread.patch

14 lines
713 B
Diff
Raw Normal View History

2023-05-03 04:32:53 +00:00
diff --git a/dependencies/common/install-packages.orig b/dependencies/common/install-packages
index 4acca62..85eb31b 100755
--- a/dependencies/common/install-packages.orig
+++ b/dependencies/common/install-packages
@@ -107,7 +107,7 @@ fi
# install packages needed to run tests
for RPKG in purrr 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