From d@tr7320 @end|ng |rom un|@@ydney@edu@@u  Wed Dec  9 00:00:04 2020
From: d@tr7320 @end|ng |rom un|@@ydney@edu@@u (Dario Strbenac)
Date: Tue, 8 Dec 2020 23:00:04 +0000
Subject: [Rd] Ignore Sites Option For libPaths
Message-ID: <SYBPR01MB4761B85D4678C2CCB95E9988CDCD0@SYBPR01MB4761.ausprd01.prod.outlook.com>

Good day,

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. For quick and convenient troubleshooting that doesn't involve requiring the editing of configuration files, it would be nice to be able to run .libPaths(.libPaths()[1], ignoreSiteFiles = TRUE) to limit to only one folder of R packages.

> .libPaths()
[1] "/dskh/nobackup/biostat/Rpackages/v4" "/usr/users/course/splus/library/R"
[3] "/usr/lib/R/site-library"             "/usr/lib/R/library"
> .libPaths(.libPaths()[1]) # No option to ignore system-wide folders.
> .libPaths() # Paths are same as before.
[1] "/dskh/nobackup/biostat/Rpackages/v4" "/usr/users/course/splus/library/R"
[3] "/usr/lib/R/site-library"             "/usr/lib/R/library"

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia


[Rd] Ignore Sites Option For libPaths
Dario Strbenac