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
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to