View source: R/load.packages.R
load.packages | R Documentation |
This function loads a named vector of packages in the RStudio session, if the package is not installed it will be installed, in addition if desired, you can update the packages.
load.packages(x)
x |
Named vector of the packages to be loaded. |
update |
Default is FALSE. if TRUE then the packages that have an update available will also be updated. |
dependent_pcs |
Default is FALSE. if TRUE then the packages defined by default will be loaded. |
# load the packages defined by default
load.packages(dependent_pcs=TRUE)
# load and update packages if there is a new version
load.packages(x=c("tidyr","Matrix"), update=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.