Function assertion that verifies the
class of an object
wrong_class_error(value, expected_class, name, null = FALSE)
Arguments
value |
The object |
expected_class |
A character vector of potential classes |
name |
The name of the object |
null |
Logical, identifying if the object can be null |