abort_packages_not_installed: Throw error if required packages are not installed.

View source: R/checks.R

abort_packages_not_installedR Documentation

Throw error if required packages are not installed.

Description

Reports which packages need to be installed and the parent function name. See https://stackoverflow.com/questions/15595478/how-to-get-the-name-of-the-calling-function-inside-the-called-routine This is only intended to be used inside a function. It will error otherwise.

Usage

abort_packages_not_installed(...)

Arguments

...

names of packages to check

Author(s)

Kelly Sovacool sovacool@umich.edu

Examples

## Not run: 
abort_packages_not_installed("base")
abort_packages_not_installed("not-a-package-name", "caret", "dplyr", "non_package")

## End(Not run)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.