installPackages | R Documentation |
Install R packages by name or URL.
## Default S3 method:
installPackages(pkgs, types="auto", repos=getOption("repos"), ..., destPath=".",
cleanup=TRUE)
pkgs |
A |
types |
A |
repos |
A |
... |
Additional arguments passed to |
destPath |
Path where any downloaded files are saved. |
cleanup |
If |
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.
Henrik Bengtsson
## Not run:
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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.