From m@ech|er @end|ng |rom @t@t@m@th@ethz@ch  Wed Dec  9 09:49:46 2020
From: m@ech|er @end|ng |rom @t@t@m@th@ethz@ch (Martin Maechler)
Date: Wed, 9 Dec 2020 09:49:46 +0100
Subject: [Rd] Ignore Sites Option For libPaths
In-Reply-To: <CAD4oTHEYZiAs6eM=hprwGo+=5ut1fbqRETacE1OViOiBHw5A3Q@mail.gmail.com>
References: <SYBPR01MB4761B85D4678C2CCB95E9988CDCD0@SYBPR01MB4761.ausprd01.prod.outlook.com>
 <24528.5452.10417.544814@rob.eddelbuettel.com>
 <CAD4oTHEYZiAs6eM=hprwGo+=5ut1fbqRETacE1OViOiBHw5A3Q@mail.gmail.com>
Message-ID: <24528.36778.578787.250945@stat.math.ethz.ch>

>>>>> Gabriel Becker 
>>>>>     on Tue, 8 Dec 2020 17:09:57 -0800 writes:

    > Of course you can, but the ability to do something via R
    > code and the ability to do them by wrapping the invocation
    > of R are not similar terms of convenience, IMO.

    > I say that as someone who routinely does both type of
    > thing.

    > ~G

I agree with Gabe here.
Also, R allows the user to remove their own home directory, it
should also allow to get a .libPaths() which contains nothing compulsory
but R's own .Library {as only that can contain 'base' !}

Martin


    > On Tue, Dec 8, 2020 at 4:07 PM Dirk Eddelbuettel
    > <edd at debian.org> wrote:

    >> 
    >> 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



[Rd] Ignore Sites Option For libPaths
Martin Maechler