R/chk.R
chk_nlist.Rd
chk_nlist checks if an nlist-object().
chk_nlist
nlist-object()
chk_nlist(x, x_name = NULL) chk_nlists(x, x_name = NULL)
The object to check.
A string of the name of object x or NULL.
NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.
NULL
chk_nlists(): Check nlists Object
chk_nlists()
chk_nlists checks if an nlists-object().
chk_nlists
nlists-object()
# chk_nlist chk_nlist(nlist(x = 1)) try(chk_nlist(list(x = 1))) #> Error in chk_nlist(list(x = 1)) : #> `list(x = 1)` must inherit from S3 class 'nlist'. # chk_nlists chk_nlists(nlists(nlist(x = 1)))