This function can be called to check that the control list passed is
appropriate for the function to be controlled. It does so by looking up the
class of the control
argument (defaulting to the control
variable in the calling function) and checking if it matches a list of
acceptable classes.
check.control.class(OKnames = as.character(ult(sys.calls(), 2)[[1L]]),
myname = as.character(ult(sys.calls(), 2)[[1L]]),
control = get("control", pos = parent.frame()))
List of control function names which are acceptable.
Name of the calling function (used in the error message).
The control list. Defaults to the control
variable in
the calling function.
set.control.class, print.control.list