assert_type | R Documentation |
Assert an object is a scalar of a certain type
assert_type(x, type)
x |
[any] Object to check |
type |
[chr] Type to check against |
[none] stop if assertion fails
Other assertions:
assert_dir_exists()
,
assert_named_list()
,
assert_scalar()
,
assert_scalar_not_empty()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.