validateIsNotEmpty: Check if objects is not empty

View source: R/validation-helpers.R

validateIsNotEmptyR Documentation

Check if objects is not empty

Description

Check if objects is not empty

Usage

validateIsNotEmpty(object)

Arguments

object

An object or a list of objects

Value

If validations are successful, NULL is returned. Otherwise, error is signaled.

Examples

# returns `NULL` if of objects are of specified length
validateIsNotEmpty(list(1, 2))

# error otherwise
# validateIsNotEmpty(NULL)

ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.