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
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
>
> --
> https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
[[alternative HTML version deleted]]