From d@tr7320 @ending from uni@@ydney@edu@@u  Wed Jul 25 14:00:11 2018
From: d@tr7320 @ending from uni@@ydney@edu@@u (Dario Strbenac)
Date: Wed, 25 Jul 2018 12:00:11 +0000
Subject: [Rd] Library lib.loc Option Ignored for Dependencies
In-Reply-To: <a7806c00-ce01-e8aa-c47a-749cd13f9dee@statistik.tu-dortmund.de>
References: <SYAPR01MB25584DFE469B02994EFBEA10CD520@SYAPR01MB2558.ausprd01.prod.outlook.com>
 <eebc4452-4bdb-d6d3-b438-dea208ab14b8@gmail.com>
 <23379.24722.804755.262952@stat.math.ethz.ch>
 <235f764d-fe20-e2cd-86a3-15bb14e0ca11@gmail.com>
 <23383.4750.718313.873781@stat.math.ethz.ch>
 <SYAPR01MB25586F58C0B6C49019D09F27CD540@SYAPR01MB2558.ausprd01.prod.outlook.com>,
 <a7806c00-ce01-e8aa-c47a-749cd13f9dee@statistik.tu-dortmund.de>
Message-ID: <MEAPR01MB2550A9669420877C9EDFB936CD540@MEAPR01MB2550.ausprd01.prod.outlook.com>

Good day,

Indeed, the setting of .libPaths() would avoid the error shown by the example. But, it seems unintuitive that R tries to load a package from one directory and its dependencies from another if the dependency is present in the same library as the package being loaded by the user's library command. The documentation of library and its description of lib.loc doesn't suggest that the alternation of source directories would occur.

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia


[Rd] Library lib.loc Option Ignored for Dependencies
Dario Strbenac