check_control: Check that a control list is proper

View source: R/utilities.R

check_controlR Documentation

Check that a control list is proper

Description

Check that a list of controls is of the right class.

Usage

check_control(control, eclass = "list")

Arguments

control

Control list to evaluate.

eclass

Expected class of the list to be evaluated.

Value

an error message is thrown if the input is improper, otherwise NULL.

Examples

 check_control(list())


LDATS documentation built on Sept. 19, 2023, 5:08 p.m.