requireLibrary: Tries to load a package.

View source: R/helperfunctions.R

requireLibraryR Documentation

Tries to load a package.

Description

Tries to load a package. If this package does not exist, it will ask the user whether the package should be installed and loaded. If the user negates, we will raise an error via stop.

Usage

requireLibrary(package)

Arguments

package

Package to load

Value

NULL

Author(s)

MuToss-Coding Team


mutoss documentation built on March 31, 2023, 8:46 p.m.