Description Usage Arguments Value
assert_string()
asserts that an object is a length 1 character
vector
assert_bool()
asserts that an object is a length 1 logical
that is either
TRUE
or FALSE
assert_scalar_int()
asserts than an object is a scalar integer
(or integerish)
1 2 3 4 5 | assert_string(x, allow_empty = TRUE)
assert_bool(x)
assert_scalar_int(x, integerish = FALSE)
|
x |
The object to check |
allow_empty |
Boolean. Should |
integerish |
Boolean. Should |
The input (or an error if assertion is failed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.