mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 21:10:27 -06:00
10 lines
329 B
Bash
Executable File
10 lines
329 B
Bash
Executable File
#!/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)'
|