Hi Dario, My switchr package is designed specifically to do what you're describing, and does support excluding site libraries. So clearly I agree it would be useful, but also, it does go against the "concept" of site libraries somewhat.
I agree it would be a useful addition with the default to including them, personally. And the patch would be pretty easy to put together. I can put together a patch and add it to bugzilla as a wishlist item and we'll see what thoughts are (unless I hear an emphatic no here, in which case I won't bother, or unless you'd like to take a crack at it yourself). ~G On Tue, Dec 8, 2020 at 3:00 PM Dario Strbenac <dstr7...@uni.sydney.edu.au> wrote: > 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 > [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel