any_satisfied | R Documentation |
Allows to check for multiple cases, and pass the test if any of the cases is satisfied.
any_satisfied(...)
... |
the various assertions that can be satisfied |
## Not run:
# For assertion
assertthat::assert_that(
qscheck::any_satisfied(
qscheck::is_positive_integer_value(value),
qscheck::is_list(value)
)
)
# For check
if (
qscheck::any_satisfied(
qscheck::is_positive_integer_value(value),
qscheck::is_list(value)
)
) {}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.