Skip to content
Permalink
Browse files

Merge pull request #5227 from rstudio/bugfix/install-testthat

sudo to provide access to /usr/local/lib/R/site-library
  • Loading branch information
kevinushey committed Oct 16, 2019
2 parents ffa4717 + 2200942 commit 5bc5f5692665b27b5e28b95f9d59f94ca59730aa
Showing with 6 additions and 0 deletions.
  1. +6 −0 dependencies/common/install-packages
@@ -83,6 +83,12 @@ mv $PACKAGE_ARCHIVE $PACKAGE_ARCHIVE_SHA1

install renv master rstudio

RHOME=$(Rscript -e 'Sys.getenv("R_HOME")')
if [[ ! -w $RHOME ]]; then
echo "$RHOME is not writable. Creating user R library directory."
mkdir -p $(Rscript -e 'cat(path.expand(Sys.getenv("R_LIBS_USER")))')
fi

# Packages needed to run tests
Rscript -e "if(!require(testthat, quietly = TRUE)) { install.packages('testthat', repos='https://cran.rstudio.com/') }"

0 comments on commit 5bc5f56

Please sign in to comment.
You can’t perform that action at this time.