Skip to contents

Individual session check function that inspects the options. Session checkers can produce errors, warnings, or messages if requested.

Usage

check_required_options(action = "warn", required_options = 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".

required_options

A named list of required options. If any of these options are missing or have different values to the required values, an action is triggered.

Value

Invisibly returns an object of class sessioncheck_status.

Examples

check_required_options(action = "message", required_options = list(scipen = 0L, max.print = 50L))
#> Unexpected options: max.print