is_artoo_checks: Test for a artoo_checks control

View source: R/checks.R

is_artoo_checksR Documentation

Test for a artoo_checks control

Description

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())
is_artoo_checks(list(missing_variable = TRUE))


artoo documentation built on July 23, 2026, 1:08 a.m.