[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 21:44:55 CEST 2022
On 25 April 2022 at 21:12, Sam H wrote:
| I have upgraded to R 4.2.0 on Ubuntu Ubuntu 20.04.4 LTS.
|
| Something changed since now when invoking R as "R --vanilla" does not pick
| up "/usr/local/lib/R/site-library" library anymore.
I noticed that too when beta testing the earlier builds. It has to do with us
(previously) setting value to unset variables ... which are now set.
For the Debian package I managed the change by moving the setting to
Renviron.site:
## edd Apr 2003 Allow local install in /usr/local, also add a directory for
## Debian packaged CRAN packages, and finally the default dir
## edd Jul 2007 Now use R_LIBS_SITE, not R_LIBS
## edd Mar 2022 Now in Renviron.site reflecting R_LIBS_SITE
R_LIBS_SITE="/usr/local/lib/R/site-library/:${R_LIBS_SITE}:/usr/lib/R/library'"
If you have those three lines you should be fine. I am (also on Uubuntu 20.04
which a binary from my PPA):
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
# Rscript --version
Rscript (R) version 4.2.0 (2022-04-22)
# Rscript -e '.libPaths()'
[1] "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
[3] "/usr/lib/R/library"
#
Dirk
--
dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-SIG-Debian
mailing list