Description Usage Arguments Value See Also Examples
View source: R/is-type-methods.R
Checks to see if the input is the name of a (formally defined) class.
1 2 3 4 5 | assert_all_are_classes(x, severity = getOption("assertive.severity", "stop"))
assert_any_are_classes(x, severity = getOption("assertive.severity", "stop"))
is_class(x, .xname = get_name_in_parent(x))
|
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_class
is a vectorised wrapper for isClass
.
assert_is_class
returns nothing but throws an error if
is_class
returns FALSE
.
1 | assert_all_are_classes(c("lm", "numeric"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.