Skip to contents

This function installs and loads R packages. It checks if the specified packages are already installed. If a package is not installed, it is downloaded from CRAN, installed, and then loaded into the R environment.

Usage

get_packages(packages)

Arguments

packages

A character vector of package names to be installed and loaded.

Value

No return value. Called for side effects.

References

Remember to add reference here.

Examples

if (FALSE) {
get_packages(c("ggplot2", "dplyr"))
}