[Rd] Ignore Sites Option For libPaths

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Wed Dec 9 01:07:40 CET 2020


On 8 December 2020 at 23:00, Dario Strbenac wrote:
| Could .libPaths gain an option to ignore all values other than the user-specified new parameter? Currently, it takes the union of new and .Library and .Library.site and there is no way to turn it off. 

Are you use? It is constructed from looking at environment variables you could set.

  edd using rob:~$ R_LIBS="/tmp" R_LIBS_SITE="/var" Rscript -e 'print(.libPaths())'
  [1] "/tmp"               "/var"               "/usr/lib/R/library"
  edd using rob:~$ 

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-devel mailing list