Description Usage Arguments Details See Also Examples
Asserts that the given value
evaluates to TRUE
. If the value
evaluates does not evaluate to TRUE
, then an error condition is
raised.
1 | assertTrue(value)
|
value |
a vector with any length. |
The identical
function is used to check this condition,
so this function will also raise an error condition if value
evaluates
to 0
or if the result of the evaluation has any attributes.
assertThat
assertFalse
isTrue
1 2 3 4 5 | ## Not run:
assertTrue(is.numeric(2019))
assertThat(is.character("orange"), isTRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.