Check if list of loaded packages is clean
Usage
check_packages(action = "warn", ignore = NULL)
Arguments
- action
Behaviour to take if environment is not clean. Possible values
are "error", "warn", "message", and "none".
- ignore
Character vector containing names of non-base packages that
will not trigger an action. If NULL, only the base packages and sessioncheck
itself are permitted.
Value
Invisibly returns a logical vector with names corresponding to
loaded namespaces. Values are TRUE if the package is ignored, FALSE if not.
Examples
check_packages(action = "message")
#> Found loaded packages: jsonlite, xml2, jquerylib, textshaping, and 39 more