Skip to contents

The chkor() function has been deprecated for the faster chkor_vld().

Usage

chkor(...)

Arguments

...

Multiple chk_ functions.

Value

An informative error if the test fails.

Details

[Deprecated]

See also

Examples

chkor()
#> Warning: `chkor()` was deprecated in chk 0.6.1.
#>  Please use `chkor_vld()` instead.
chkor(chk_flag(TRUE))
try(chkor(chk_flag(1)))
#> Error in chkor(chk_flag(1)) : `1` must be a flag (TRUE or FALSE).
try(chkor(chk_flag(1), chk_flag(2)))
#> Error in chkor(chk_flag(1), chk_flag(2)) : 
#>   At least one of the following conditions must be met:
#> * `1` must be a flag (TRUE or FALSE).
#> * `2` must be a flag (TRUE or FALSE).
chkor(chk_flag(1), chk_flag(TRUE))