Description

Usage

Arguments

unnamed expressions that describe the
conditions to be tested. Rather than combining
expressions with &&, separate them by commas so
that better error messages can be generated.

env

(advanced use only) the environment in which
to evaluate the assertions.

Assertions

Assertion functions should return a single TRUE or
FALSE: any other result is an error, and
assert_that will complain about it. This will
always be the case for the assertions provided by
assertthat, but you may need be a more careful for
base R functions.

To make your own assertions that work with
assert_that, see the help for
on_failure.

See Also

validate_that, which returns a message (not an error)
if the condition is false.