# Predicate for NULL. Vectors of length zero are not NULL!
is_null(NULL)
is_null(c())
is_null(numeric())
# The opposite check
is_not_null(NULL)
is_not_null(c())
is_not_null(numeric())
# These checks should pass
assert_is_null(NULL)
assert_is_null(c())
assert_is_not_null(NA)
Run the code above in your browser using DataLab