load.packages: Load packages in R session

View source: R/load.packages.R

load.packagesR Documentation

Load packages in R session

Description

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.

Usage

load.packages(x)

Arguments

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.

Examples

# 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)


douve/UEMR documentation built on Aug. 28, 2023, 2:30 p.m.