Where, only for dependencies, .libPaths() is first checked for
installed.packages; but the same check doesn't occur for the specified
Code to reproduce:
a <- file.path(tempdir(), "temp")
install.packages("purrr", dependencies = "Imports", lib = a)
list.dirs(a, recursive = FALSE)
Definition of 'lib' from ?install/packages : "character vector giving
the library directories where to install the packages. Recycled as
needed. If missing, defaults to the first element of .libPaths(). "
So, is this the desired behavior? It would mean it's ?impossible? to
install a package to another location if it happens to be located
within R_LIBS; it also seems weird to have it work for the specified
package but not its dependencies.
Center for Biomolecular Sciences
Department of Medicinal Chemistry and Pharmacognosy
University of Illinois at Chicago