Check an object doesn't have any empty dimensions

not_empty(x)

Arguments

x

object to test

See also

Other assertions: are_equal, is.error, is.scalar, noNA

Examples

not_empty(numeric())
#> [1] FALSE
not_empty(mtcars[0, ])
#> [1] FALSE
not_empty(mtcars[, 0])
#> [1] FALSE