Skip to contents

Report whether an object is a artoo_checks control built by artoo_checks(). Use it to guard a checks argument before threading it into check_spec() or apply_spec().

Usage

is_artoo_checks(x)

Arguments

x

Object to test. <any>.

Value

A <logical(1)>: TRUE when x is a artoo_checks.

See also

artoo_checks() to build one.

Examples

# ---- Example 1: confirm a control before reusing it ----
#
# is_artoo_checks() distinguishes a real control from a bare list of flags.
is_artoo_checks(artoo_checks())
#> [1] TRUE
is_artoo_checks(list(missing_variable = TRUE))
#> [1] FALSE