load_packages.Rd
A wrapper for library() that can load multiple packages at once. If the package is not installed, the function will install it first.
library()
load_packages(pkgs, install_missing = TRUE)
A character vector of package names
A boolean indicating whether to install missing packages. Default is TRUE
The function does not return anything
if (FALSE) { # \dontrun{ load_packages(c("dplyr", "ggplot2")) } # }