load_packages: Load a list of packages.

Description Usage Arguments Examples

View source: R/load_packages.R

Description

Load packages and install them from CRAN if they aren't already available.

Usage

1
load_packages(pkgs = NULL, auto_install = F, update = F, verbose = F, ...)

Arguments

pkgs

Character vector of packages to load.

auto_install

Install any packages that could not be loaded.

update

Update packages where possible.

verbose

If T display more detailed information during execution.

...

Any additional parameters to pass through to install.packages()

Examples

1
2
3
# Load these 4 packages and install them if necessary.
load_packages(c("MASS", "SuperLearner", "tmle", "doParallel"),
              auto_install = TRUE)

ck37r documentation built on Feb. 6, 2020, 5:09 p.m.

Related to load_packages in ck37r...