[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 23:00:18 CEST 2022


So in short:  If you want to run R with --vanilla you have to change the
local set up file. Because R now ships with this

  R_LIBS_USER=${R_LIBS_USER:-'%U'}
  R_LIBS_SITE=${R_LIBS_SITE:-'%S'}

you could set R_LIBS_USER and/or R_LIBS_SITE in a file read by the OS before
R starts -- a short text snippet in /etc/profile.d/ may work -- to ensure
R_LIBS_USER and R_LIBS_SITE are set to your liking.

Sorry for missing the hint about --vanilla from your first email.

Dirk

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



More information about the R-SIG-Debian mailing list