Get calling package name
Usage
get_pkg_name(call = rlang::caller_env())
Arguments
- call
(
environment
) The environment from which a function was called, e.g.rlang::caller_env()
(the default). The environment will be mentioned in error messages as the source of the error. This argument is particularly useful for functions that are intended to be called as utilities inside other functions.