Usage
check_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
test_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
assert_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
Examples
test_empty(1)
#> [1] FALSE
#> [1] FALSE # Expected
test_empty(character())
#> [1] TRUE
#> [1] TRUE # Expected