R/utils.R
not_empty.Rd
Stops execution if x is NULL, empty, or contains only NAs.
not_empty(x, msg = NULL)
The object to check
The error message to display. The default names the offending argument, e.g. "`data` must not be empty.".
"`data` must not be empty."
Invisible TRUE if valid.