not_empty: Ensure input is not empty
Description
Stops execution if x is NULL, empty, or contains only NAs.
Usage
not_empty(x, msg = "Input must not be empty.")
Value
Invisible TRUE if valid.
Arguments
- x
The object to check
- msg
The error message to display