not_empty: Ensure input is not empty

View source: R/utils.R

not_emptyR Documentation

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.")

Arguments

x

The object to check

msg

The error message to display

Value

Invisible TRUE if valid.


colleyRstats documentation built on May 3, 2026, 5:07 p.m.