| assert_all_are_classes {assertive.types} | R Documentation |
Checks to see if the input is the name of a (formally defined) class.
assert_all_are_classes(x, severity = getOption("assertive.severity", "stop"))
assert_any_are_classes(x, severity = getOption("assertive.severity", "stop"))
is_class(x, .xname = get_name_in_parent(x))
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_class is a vectorised wrapper for isClass.
assert_is_class returns nothing but throws an error if
is_class returns FALSE.
assert_all_are_classes(c("lm", "numeric"))