Description Usage Arguments Details See Also Examples
Asserts that the given value
evaluates to FALSE
. If the value
evaluates does not evaluate to FALSE
, then an error condition is
raised.
1 | assertFalse(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
assertTrue
isFalse
1 2 3 4 5 6 | ## Not run:
assertFalse(is.character(1L))
## If you use an R version greater than 3.5.0, you can also use:
assertThat(is.numeric("a"), isFALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.