superlint/scripts/install-lintr.sh

9 lines
301 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
mkdir -p /home/r-library
cp -r /usr/lib/R/library/ /home/r-library/
Rscript -e "install.packages(c('lintr','purrr'), repos = 'https://cloud.r-project.org/')"
R -e "install.packages(list.dirs('/home/r-library',recursive = FALSE), repos = NULL, type = 'source')"