load_package: Convenience Function to Load in R Packages

View source: R/S03_Utilities.R

load_packageR Documentation

Convenience Function to Load in R Packages

Description

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

Usage

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).


rettopnivek/arfpam documentation built on Oct. 20, 2024, 7:24 p.m.