View source: R/type-assertions.R
assert_inherits | R Documentation |
Raises an assertion error when !inherits(obj, class)
.
assert_inherits( obj, class, error_message = "{.arg obj} must inherit {.cls {class}}", error_class = NULL )
obj |
< |
class |
< |
error_message |
< |
error_class |
< |
Other type-assertions:
assert_is_character()
,
assert_is_double()
,
assert_is_integerish()
,
assert_is_integer()
,
assert_is_logical()
,
assert_is_numeric()
,
assert_is_raw()
,
assert_is_typeof()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.