Skip to contents

Function Argument Validation

Tools for validation and safe casting and recycling.

abort_if_not() abort_if()
Ensure the truth of R expressions
cast_if_not()
Cast objects to a given type
recycle_if_not()
Recycle objects to a given size
enforce()
Ensure the truth of R expressions and cast/recycle objects.
schema() enforce_schema() add_to_schema()
Ensure the truth of data-masked R expressions and cast/recycle named elements.

rlang predicate wrappers

Wrappers around rlang predicates that enable multiple inputs.

Attributes

Type predicates

Scalar type predicates

Bare type predicates

Integerish predicates

Utility predicates

are_empty()
Are objects empty vectors or NULL?
are_true() are_false()
Are objects TRUE or FALSE?