Skip to contents

Assert specific values and set memberships

Usage

assert_choice(x, choices, ...)

Arguments

x

The variable to assert

choices

A vector of values representing the which x must be an element of.

...

Additional parameters passed to corresponding checkmate functions checkmate::qtest(), checkmate::check_flag(), etc.

Value

The original object if the assertion passes.