From btyner @ending from gm@il@com  Sat Jul 21 01:42:09 2018
From: btyner @ending from gm@il@com (Benjamin Tyner)
Date: Fri, 20 Jul 2018 19:42:09 -0400
Subject: [Rd] Library lib.loc Option Ignored for Dependencies
In-Reply-To: <SYAPR01MB25584DFE469B02994EFBEA10CD520@SYAPR01MB2558.ausprd01.prod.outlook.com>
References: <SYAPR01MB25584DFE469B02994EFBEA10CD520@SYAPR01MB2558.ausprd01.prod.outlook.com>
Message-ID: <eebc4452-4bdb-d6d3-b438-dea208ab14b8@gmail.com>

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
>



[Rd] Library lib.loc Option Ignored for Dependencies
Benjamin Tyner