checkor: Check OR

View source: R/checkor.R

checkorR Documentation

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 the check fails.

Value

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

Examples

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)

poissonconsulting/checkr documentation built on Oct. 18, 2023, 9:39 p.m.