chk_nlist: Check nlist Object or nlists Object

Description Usage Arguments Value Functions Examples

View source: R/chk.R

Description

chk_nlist checks if an nlist-object().

Usage

1
2
3
chk_nlist(x, x_name = NULL)

chk_nlists(x, x_name = NULL)

Arguments

x

The object to check.

x_name

A string of the name of object x or NULL.

Value

NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.

Functions

Examples

1
2
3
4
5
6
# chk_nlist
chk_nlist(nlist(x = 1))
try(chk_nlist(list(x = 1)))

# chk_nlists
chk_nlists(nlists(nlist(x = 1)))

nlist documentation built on Sept. 5, 2021, 6:05 p.m.