[Rd] Library lib.loc Option Ignored for Dependencies
Uwe Ligges
ligge@ @ending from @t@ti@tik@tu-dortmund@de
Wed Jul 25 10:29:52 CEST 2018
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 using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
More information about the R-devel
mailing list