summaryrefslogtreecommitdiff
path: root/.local/bin/Rinstall
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-24 12:22:09 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-24 12:22:09 -0500
commit2c5a050641d5400843facfc65e58a2bef5d87422 (patch)
treeb9b0f04c256509dc773197c90605f763d51c3400 /.local/bin/Rinstall
parent61e7324e6692b155b6dd1d450ff431582c1fc57b (diff)
Multithreaded R package compilation
Diffstat (limited to '.local/bin/Rinstall')
-rwxr-xr-x.local/bin/Rinstall5
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/Rinstall b/.local/bin/Rinstall
index 8d2857e..a4ee1c5 100755
--- a/.local/bin/Rinstall
+++ b/.local/bin/Rinstall
@@ -1,5 +1,4 @@
#!/bin/sh
-for f in $*
- do
- sudo R --vanilla -e "install.packages('"$f"', repos='http://cran.us.r-project.org')"
+for f in $*; do
+ sudo R --vanilla -e "install.packages('"$f"', repos='http://cran.us.r-project.org', Ncpus=10)"
done