validate: Returns the error message if fails or TRUE if successful....

View source: R/assert.R

validateR Documentation

Returns the error message if fails or TRUE if successful. Useful in S4 validation.

Description

Returns the error message if fails or TRUE if successful. Useful in S4 validation.

Usage

validate(..., env = parent.frame(), msg = NULL)

Arguments

...

Condition to test

env

environment on which to apply the assertion

msg

overrides the error message, if specified.


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