assert_bool: Assert that an Object is Boolean

View source: R/assert.R

assert_boolR Documentation

Assert that an Object is Boolean

Description

assert_bool() checks whether an object is (scalar) Boolean using is_bool().

Usage

assert_bool(x, arg = NULL)

Arguments

x

An object to test

arg

Optional argument name to display in error messages. If not provided, the input x is parsed to a name using expr_label(enexpr(x)).

Value

x, invisibly


jesse-smith/coviData documentation built on Jan. 14, 2023, 11:08 a.m.