# all() on the result of checking a 0-row data frame must be TRUE
# (every statement about elements of the empty set is TRUE)

# similarly, any() should give FALSE: there are not any elements
# in the empty set for which a statement is TRUE.

cf <- check_that(data.frame(a = integer(0)), a == 1)


Try the validate package in your browser

Any scripts or data that you put into this service are public.

validate documentation built on March 24, 2022, 5:07 p.m.