check_format(x, len = NULL, min.len = NULL, max.len = NULL)assert_format(
x,
len = NULL,
min.len = NULL,
max.len = NULL,
.var.name = checkmate::vname(x),
add = NULL
)
test_format(x, len = NULL, min.len = NULL, max.len = NULL)
expect_format(
x,
len = NULL,
min.len = NULL,
max.len = NULL,
info = NULL,
label = vname(x)
)
TRUE if successful, otherwise a string with the error message.
[any]
Object to check.
[integer(1)]
Exact expected length of x.
[integer(1)]
Minimal length of x.
[integer(1)]
Maximal length of x.
[character(1)]
Name of the checked object to print in assertions. Defaults to
the heuristic implemented in vname.
[AssertCollection]
Collection to store assertion messages. See AssertCollection.
[character(1)]
Extra information to be included in the message for the testthat reporter.
See expect_that.
[character(1)]
Name of the checked object to print in messages. Defaults to
the heuristic implemented in vname.
assertions for more details.