| checkFALSE {checkmate} | R Documentation |
Simply checks if an argument is FALSE.
checkFALSE(x, na.ok = FALSE) check_false(x, na.ok = FALSE) assertFALSE(x, na.ok = FALSE, .var.name = vname(x), add = NULL) assert_false(x, na.ok = FALSE, .var.name = vname(x), add = NULL) testFALSE(x, na.ok = FALSE) test_false(x, na.ok = FALSE)
x |
[any] |
na.ok |
[ |
.var.name |
[ |
add |
[ |
Depending on the function prefix:
If the check is successful, the functions
assertFALSE./assert_false. return
x invisibly, whereas
checkFALSE./check_false. and
testFALSE./test_false. return
TRUE.
If the check is not successful,
assertFALSE./assert_false.
throws an error message,
testFALSE./test_false.
returns FALSE,
and checkFALSE. returns a string with the error message.
The function expect_false. always returns an
expectation.
testFALSE(FALSE) testFALSE(TRUE)