R/utils.R
is_empty.Rd
Test whether a vector is length zero and IS not NULL
is_empty(x)
logical. TRUE if x is empty but it is not NULL
x <- vector() is_empty(x) #> [1] TRUE y <- NULL length(y) #> [1] 0 is_empty(y) #> [1] FALSE