check_list: Check that object is a list object

Description Usage Arguments Value

View source: R/utils_validation.R

Description

Check that object is a list object

Usage

1
2
3
4
5
6
7
check_list(
  obj,
  err_h,
  allow_null = FALSE,
  allow_names = TRUE,
  allow_empty = TRUE
)

Arguments

obj

The object, that should be checked.

err_h

An error handler.

allow_null

A logical, defining whether the object is allowed to be NULL.

allow_names

A logical, defining whether the entries may have names.

allow_empty

A logical, defining whether the list may be empty.

Value

The passed in object.


a-maldet/readall documentation built on Dec. 18, 2021, 9:23 p.m.