stopif: Ensure that R expressions are false in unit tests

Description Usage Arguments Examples

View source: R/utils.R

Description

Ensure that R expressions are false in unit tests

Usage

1

Arguments

...

Any number of (logical) R expressions, which should evaluate to TRUE.

Examples

1
2
3
4
5
## Not run: 
stopif(is.empty(c(2,1)), 4 < 3) # all FALSE
stopif(is.empty(numeric(0)))

## End(Not run)

f0nzie/rNodal documentation built on Oct. 30, 2017, 4:03 a.m.