Assert that one or more packages are installed.
Usage
assert_packages_installed(
x,
msg = NULL,
call = rlang::caller_env(),
arg_name = NULL
)Arguments
- x
Package name(s) (character vector)
- msg
A character string containing the error message to display if the package is not installed
- call
Only relevant when pooling assertions into multi-assertion helper functions. See cli_abort for details.
- arg_name
Advanced use only. Name of the argument passed (default: NULL, will automatically extract arg_name).
