add support for R via renv

This commit is contained in:
Lorenz 2021-02-04 00:22:44 +01:00 committed by Anthony Sottile
parent b193d9e67b
commit f1502119a2
15 changed files with 443 additions and 4 deletions

9
testing/get-r.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
sudo apt install r-base
# create empty folder for user library.
# necessary for non-root users who have
# never installed an R package before.
# Alternatively, we require the renv
# package to be installed already, then we can
# omit that.
Rscript -e 'dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)'