installPackages.Rd
Install R packages by name or URL.
# S3 method for default
installPackages(pkgs, types="auto", repos=getOption("repos"), ..., destPath=".",
cleanup=TRUE)
A character
vector
specifying the names and/or the URLs
of the R packages to be installed.
Additional arguments passed to install.packages
.
Path where any downloaded files are saved.
If TRUE
, downloaded and successfully installed package
files are removed, otherwise not.
Returns nothing.
This method cannot install any packages that are already in use. Certain packages are always in use when calling this method, e.g. R.methodsS3, R.oo, and R.utils.
if (FALSE) {
installPackages("R.rsp")
installPackages("https://cran.r-project.org/src/contrib/Archive/R.rsp/R.rsp_0.8.2.tar.gz")
installPackages("https://cran.r-project.org/bin/windows/contrib/4.0/R.rsp_0.44.0.zip")
}