Assert that an object has a certain class.
assertClass(
x,
class,
length = NULL,
null = FALSE,
all = FALSE,
extra = TRUE,
call = parent.frame(),
msg = NULL
)
To check.
Expected class or classes.
Required length. If NULL
length is not checked.
Whether it can be NULL.
Whether it should have all the classes or only at least one of them.
Whether the object can have extra classes.
Call argument that will be passed to cli
.
Custom error message.