Usage
check_not_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
test_not_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
assert_not_empty(x, null_ok = FALSE, .names = deparse(substitute(x)))
Examples
test_not_empty(character())
#> [1] FALSE
#> [1] FALSE # Expected
test_not_empty(1)
#> [1] TRUE
#> [1] TRUE # Expected