Learn R Programming

ospsuite.utils (version 1.2.0)

validateIsNotEmpty: 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

Run this code
# NOT RUN {
# returns `NULL` if of objects are of specified length
validateIsNotEmpty(list(1, 2))

# error otherwise
# validateIsNotEmpty(NULL)
# }

Run the code above in your browser using DataLab