Skip to contents

Stops execution if x is NULL, empty, or contains only NAs.

Usage

not_empty(x, msg = NULL)

Arguments

x

The object to check

msg

The error message to display. The default names the offending argument, e.g. "`data` must not be empty.".

Value

Invisible TRUE if valid.