Skip to content

Commit fdced76

Browse files
authored
Update R_LIBS_USER to point to site-library
1 parent beec8e4 commit fdced76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/install-r-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ fi
2727
# Make sure we install to the site-library
2828
#echo ".libPaths('${R_HOME}/site-library')" > /tmp/rprofile.site
2929
#export R_PROFILE=/tmp/rprofile.site
30-
export R_LIBS_SITE="${R_HOME}/site-library"
31-
export R_LIBS_USER=""
30+
# the ${R_HOME}/etc/R.profile has .libPaths(c(Sys.getenv("R_LIBS_USER"), .libPaths())), so we set R_LIBS_USER temporarily
31+
export R_LIBS_USER="${R_HOME}/site-library"
3232

3333
# Set the file variable to the provided argument
3434
INSTALL_FILE="$1"

0 commit comments

Comments
 (0)