assert_valid_type {chevron} | R Documentation |
Check variable is of correct type
assert_valid_type(x, types, label = deparse(substitute(x)))
x |
Object to check the type. |
types |
( |
label |
( |
invisible NULL
or an error message if the criteria are not fulfilled.