Convenience function to load in a set of R packages - can be used to first install missing packages before loading them.

load_package(pkg = c("dplyr", "arfpam"), install = FALSE, quietly = FALSE)

Arguments

pkg

A character vector of package names to load - by default loads the current package in addition to the package dplyr.

install

Logical; if TRUE attempts to install missing packages.

quietly

Logical; if TRUE loads in packages with no console messages (including warnings and/or error messages).

Value

Loads in a set of R packages (see library).