any_satisfied: Checks if any one of a set of assertions is satisfied

View source: R/combinations.R

any_satisfiedR Documentation

Checks if any one of a set of assertions is satisfied

Description

Allows to check for multiple cases, and pass the test if any of the cases is satisfied.

Usage

any_satisfied(...)

Arguments

...

the various assertions that can be satisfied

Examples

## 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)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.