installFoundDepends {tools}
Description
This function will take the Found element of a pkgDependsList object and attempt to install all of the listed packages from the specified repositories.
Usage
installFoundDepends(depPkgList, ...)
Arguments
- depPkgList
- A
Foundelement from apkgDependsListobject - ...
- Arguments to pass on to
install.packages
Details
This function takes as input the Found list from a pkgDependsList object. This list will have element names being URLs corresponding to repositories and the elements will be vectors of package names. For each element, install.packages is called for that URL to install all packages listed in the vector.
See Also
Examples
## Set up a temporary directory to install packages to tmp <- tempfile() dir.create(tmp) pDL <- pkgDepends("tools", local = FALSE) installFoundDepends(pDL$Found, destdir = tmp)
Documentation reproduced from R 2.15.3. License: GPL-2.
