.check_if_null_or_belongs_to_class | R Documentation |
Utility function to check whether an object is null or belongs to a particular class.
.check_if_null_or_belongs_to_class(
object,
proper_class,
parameter_name,
mode = "any"
)
object |
An object whose class needs checking, |
proper_class |
A string describing the desired class of |
parameter_name |
A string containing the name the tested parameter had in the initial function in which it was passed. |
mode |
Optional. A string describing the desired mode of |
TRUE if all tests were passed. Throws an error otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.