Skip to content
Back to formatted view

Raw Message

Message-ID: <25191.3042.887662.570093@rob.eddelbuettel.com>
Date: 2022-04-25T21:00:18Z
From: Dirk Eddelbuettel
Subject: 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/"
In-Reply-To: <CAEtT+h37kZxh6hML5BZ98ed+TBY9hEWnAayi_rQrirFtghfYvA@mail.gmail.com>

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 at debian.org