[R-sig-Debian] Where/how to set R_LIBS_SITE in R 4.2.0 for running R as R --vanilla to pick up "/usr/local/lib/R/site-library/"

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Mon Apr 25 22:50:41 CEST 2022

On 25 April 2022 at 22:29, Sam H wrote:
| Just to make sure it is only me: when you run the following commands ($
| Rscript -e '.libPaths()') without and with --vanilla on your system you get
| the same output (as you see below I don't):
| username using usernameVB:~$ Rscript -e '.libPaths()'
| [1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
| [3] "/usr/lib/R/library"
| username using usernameVB:~$ Rscript --vanilla -e '.libPaths()'
| [1] "/usr/lib/R/site-library" "/usr/lib/R/library"

I see the same on Ubuntu with R 4.2.0.

This is likely due to me having to move the setting for
from R's own Renviron to Renviron.site and --vanilla skip reading that.


dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org

More information about the R-SIG-Debian mailing list