Learn R Programming

checkr (version 0.5.0)

checkor: Check OR

Description

Checks that at least one check passes.

Usage

checkor(..., error = TRUE)

Arguments

...

The checks to check.

error

A flag indicating whether to throw an informative error or immediately generate an informative message if all checks fails.

Value

An invisible flag indicating whether at least one check passes (if it doesn't throw an error).

Examples

Run this code
# NOT RUN {
checkor(check_null(NULL), check_null(1), error = FALSE)
checkor(check_null(1), check_null(1), error = FALSE)
checkor(check_null(1), check_null(2), error = FALSE)
# }

Run the code above in your browser using DataLab