From edd @end|ng |rom deb|@n@org  Wed Dec  9 01:07:40 2020
From: edd @end|ng |rom deb|@n@org (Dirk Eddelbuettel)
Date: Tue, 8 Dec 2020 18:07:40 -0600
Subject: [Rd] Ignore Sites Option For libPaths
In-Reply-To: <SYBPR01MB4761B85D4678C2CCB95E9988CDCD0@SYBPR01MB4761.ausprd01.prod.outlook.com>
References: <SYBPR01MB4761B85D4678C2CCB95E9988CDCD0@SYBPR01MB4761.ausprd01.prod.outlook.com>
Message-ID: <24528.5452.10417.544814@rob.eddelbuettel.com>


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 at rob:~$ R_LIBS="/tmp" R_LIBS_SITE="/var" Rscript -e 'print(.libPaths())'
  [1] "/tmp"               "/var"               "/usr/lib/R/library"
  edd at rob:~$ 

Dirk

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



[Rd] Ignore Sites Option For libPaths
Dirk Eddelbuettel