Learn R Programming

sketchy (version 1.0.5)

load_packages: Install and load packages

Description

load_packages installs and loads packages from different repositories.

Usage

load_packages(packages, quite = FALSE, upgrade.deps = FALSE)

Value

No object is returned.

Arguments

packages

Character vector with the names of the packages to be installed. The vector names indicate the repositories from which packages will be installed. If no name is included CRAN will be used as the default repository. Available repositories are: 'cran', 'github', 'gitlab', 'bitbucket' and 'bioconductor'. Note that for 'github', 'gitlab' and 'bitbucket' the string must include the user name in the form 'user/package'.

quite

Logical argument to control if package startup messages are printed. Default is FALSE (messages are printed).

upgrade.deps

Logical argument to control if package dependencies are upgraded.Default is FALSE.

Author

Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)

Details

The function installs and loads packages from different repositories in a single call.

References

Araya-Salas, M., Arriaga, A. (2023), sketchy: research compendiums for data analysis in R. R package version 1.0.3.

See Also

compendiums, make_compendium

Examples

Run this code
if (FALSE) {
load_packages(packages = c("kableExtra", bioconductor = "ggtree",
github = "maRce10/Rraven"), quite = TRUE)
}

Run the code above in your browser using DataLab