Loads packages, installing them if necessary

Share:

Description

load_packages_robustly loads a character vector of packages installing any packages not currently installed

Usage

1
2
  load_packages_robustly(packages,
    repos = getOption("repos"))

Arguments

packages

Character vector of package names to be loaded

repos

Base URLs of repositories to use

Value

Returns invisible(NULL), as side effect loads and possibly installs packages