Individual session check functions that each inspect one way in which an R session could be considered not to be "clean". Session checkers can produce errors, warnings, or messages if requested.
Arguments
- action
Behaviour to take if the status is not clean. Possible values are "error", "warn", "message", and "none". If the user does not specify an action the default to set
action = "warn".- checks
Character vector listing the checks to run. If the user does not specify the checks, the default is to run
checks = c("globalenv_objects", "attached_packages", "attached_environments").- ...
Arguments passed to individual checks.
Details
sessioncheck() allows the user to apply multiple session checks in a single function.
The following arguments are recognised via ...:
allow_globalenv_objectsis passed tocheck_globalenv_objects()allow_attached_packagesis passed tocheck_attached_packages()allow_attached_environmentsis passed tocheck_attached_environments()allow_loaded_namespacesis passed tocheck_loaded_namespaces()max_sessiontimeis passed tocheck_sessiontime()required_optionsis passed tocheck_required_options()required_localeis passed tocheck_required_locale()required_sysenvis passed tocheck_required_sysenv()
Other arguments are ignored.