From ligge@ @ending from @t@ti@tik@tu-dortmund@de  Wed Jul 25 10:29:52 2018
From: ligge@ @ending from @t@ti@tik@tu-dortmund@de (Uwe Ligges)
Date: Wed, 25 Jul 2018 10:29:52 +0200
Subject: [Rd] Library lib.loc Option Ignored for Dependencies
In-Reply-To: <SYAPR01MB25586F58C0B6C49019D09F27CD540@SYAPR01MB2558.ausprd01.prod.outlook.com>
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>
Message-ID: <a7806c00-ce01-e8aa-c47a-749cd13f9dee@statistik.tu-dortmund.de>



On 25.07.2018 04:00, Dario Strbenac wrote:
> Good day,
> 
> A self-contained example which reproduces the problem is
> 
> packagesFolder <- tempdir()
> latestFolder <- file.path(packagesFolder, "latest")
> dir.create(latestFolder)
> 
> devtools::create(file.path(latestFolder, "statistics"), description = list(Version = "1.1.0", Depends = "extras (>= 1.0.5)"))
> devtools::create(file.path(packagesFolder, "extras"), description = list(Version = "1.0.0"))
> devtools::create(file.path(latestFolder, "extras"), description = list(Version = "1.1.0"))
> 
> latestInstall <- file.path(.libPaths()[1], "latest")
> dir.create(latestInstall)
> install.packages(file.path(packagesFolder, "extras"), type = "source", repos = NULL)
> install.packages(file.path(latestFolder, "extras"), type = "source", repos = NULL, lib = latestInstall)
> install.packages(file.path(latestFolder, "statistics"), type = "source", repos = NULL, lib = latestInstall)
> 
>> library(statistics, lib.loc = latestInstall)
>    Error: package ?extras? 1.0.0 was found, but >= 1.0.5 is required by ?statistics?
> 
> The latest version of the statistics package is loaded, but the directory of latest packages is ignored by R when it considers the package dependency.

See my other mail, I think this is epctected, why don't youi set the 
.libPaths() correctly?

Nor is this self contained as we need some extra package  to try your 
example...

Best,
Uwe Ligges


> --------------------------------------
> Dario Strbenac
> University of Sydney
> Camperdown NSW 2050
> Australia
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Library lib.loc Option Ignored for Dependencies
Uwe Ligges