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

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())