checkChoice(x, choices)assertChoice(x, choices, .var.name)
testChoice(x, choices)
x
. Defaults to a heuristic to determine
the name using deparse
and substitute
.atomic
]
Set of possible values.TRUE
.
If the check is not successful, assertChoice
throws an error message,
testChoice
returns FALSE
and checkChoice
returns
a string with the error message.assertSubset
,
checkSubset
, testSubset