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.

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

Reply via email to