From g@bembecker @end|ng |rom gm@||@com  Wed Dec  9 00:37:44 2020
From: g@bembecker @end|ng |rom gm@||@com (Gabriel Becker)
Date: Tue, 8 Dec 2020 15:37:44 -0800
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: <CAD4oTHHgdjWnMsKHvXGUxcjumfdcgpNVpcdjqNWDvzGJN3uMxg@mail.gmail.com>

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

	[[alternative HTML version deleted]]



[Rd] Ignore Sites Option For libPaths
Gabriel Becker