abort_if_missing_subclass | R Documentation |
Check an object for a subclass and signal an error if the subclass is missing.
abort_if_missing_subclass(
obj,
subclass,
cause_string,
hint_string = NULL,
call = rlang::caller_env(),
...
)
obj |
The object to check for |
cause_string |
Why the action was invalid. |
hint_string |
An optional hint to fix the error. |
call |
The function environment that is most relevant from the user's
perspective. Default is |
... |
Passed to |
sublcass |
The subclass that |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.