checkFlag(x, na.ok = FALSE)assertFlag(x, na.ok = FALSE, add = NULL, .var.name = NULL)
assert_flag(x, na.ok = FALSE, add = NULL, .var.name = NULL)
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
.NULL
|| character(1)
]
Name of the checked object to print in error message. If NULL
,
the name will be heuristically determined via 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