abort_packages_not_installed {mikropml} | R 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)
[Package mikropml version 1.6.1 Index]