assertClass | R Documentation |
Assert that an object has a certain class.
assertClass(
x,
class,
length = NULL,
null = FALSE,
all = FALSE,
extra = TRUE,
call = parent.frame(),
msg = NULL
)
x |
To check. |
class |
Expected class or classes. |
length |
Required length. If |
null |
Whether it can be NULL. |
all |
Whether it should have all the classes or only at least one of them. |
extra |
Whether the object can have extra classes. |
call |
Call argument that will be passed to |
msg |
Custom error message. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.