checkFlag(x, na.ok = FALSE)assertFlag(x, na.ok = FALSE, add = NULL, .var.name)
assert_flag(x, na.ok = FALSE, add = NULL, .var.name)
testFlag(x, na.ok = FALSE)
test_flag(x, na.ok = FALSE)
expect_flag(x, na.ok = FALSE, info = NULL, label = NULL)
logical(1)]
Are missing values allowed? Default is FALSE.AssertCollection]
Collection to store assertions. See AssertCollection.x. Defaults to a heuristic to determine
the name using deparse and substitute.expect_that..var.name, but passed down to expect_that.TRUE. If the check
is not successful, assertFlag/assert_flag
throws an error message, testFlag/test_flag
returns FALSE,
and checkFlag returns a string with the error message.
The function expect_flag always returns an
expectation.NA, NA_integer_, NA_real_, NA_complex_
NA_character_ and NaN.checkCount,
checkInt, checkNumber,
checkScalarNA, checkScalar,
checkString