Individual session check function that inspects the attached packages.
Session checkers can produce errors, warnings, or messages if requested.
Usage
check_attached_packages(action = "warn", allow_attached_packages = NULL)
Arguments
- action
Behaviour to take if the status is not clean. Possible values are
"error", "warn", "message", and "none". The default is action = "warn".
- allow_attached_packages
Character vector containing names of packages that
are "allowed", and will not trigger an action if attached to the search path.
Value
Invisibly returns an object of class sessioncheck_status.
Details
This checker inspects the list of packages that have been
attached to the search path (e.g., via library()). Regardless of the value of
allow, R packages that have "base" priority (e.g., base, utils, and
grDevices) do not trigger an action. When allow = NULL these are the only
packages that will not trigger actions.
Examples
check_attached_packages(action = "message")
#> Attached packages: sessioncheck