| qassertr {checkmate} | R Documentation |
Quick recursive arguments checks on lists and data frames
Description
These functions are the tuned counterparts of qtest and
qassert tailored for recursive checks of list
elements or data frame columns.
Usage
qassertr(x, rules, .var.name)
qtestr(x, rules)
Arguments
x |
[list or data.frame]
List or data frame to check for compliance with at least one of rules.
See details of qtest for rule explanation.
|
rules |
[character]
Set of rules. See qtest
|
.var.name |
[logical(1)]
Argument name to print in error message. If missing,
the name of x will be retrieved via substitute.
|
Value
[logical(1)]: TRUE on success, FALSE (or a thrown exception) otherwise.
See Also
qtest, qassert
Examples
qtestr(as.list(1:10), "i+")
qtestr(iris, "n")
[Package
checkmate version 1.6.0
Index]