[Rd] Library lib.loc Option Ignored for Dependencies

Benjamin Tyner btyner @ending from gm@il@com
Sat Jul 21 01:42:09 CEST 2018

Here's a trick/workaround; if lib.loc is the path to your library, then 
prior to calling library(),

 > environment(.libPaths)$.lib.loc <- lib.loc

> ------------------------------------------------------------------------
> Good day,
> If there's a library folder of the latest R packages and a particular package from it is loaded using the lib.loc option, the dependencies of that package are still attempted to be loaded from another folder of older packages specified by R_LIBS, which may cause errors about version requirements not being met. The documentation of the library function doesn't explain what the intended result is in such a case, but it could reasonably be expected that R would also load the dependencies from the user-specified lib.loc folder.
> --------------------------------------
> Dario Strbenac
> University of Sydney
> Camperdown NSW 2050
> Australia

More information about the R-devel mailing list