Skip to main content

builtin_stopifnot

Function builtin_stopifnot 

Source
fn builtin_stopifnot(
    args: &[RValue],
    _: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Assert that all arguments are TRUE, stopping with an error otherwise.

Checks each argument in order. If any element is FALSE or NA, raises an error identifying the failing argument.

@param … logical conditions that must all be TRUE @return NULL (invisibly) if all conditions pass