check.options: Set Options with Consistency Checks
Description
Utility function for setting options with some consistency checks.
The attributes of the new settings in new are
checked for consistency with the model (often default)
list in name.opt.
character containing the attributes which
check.options should check.
override.check
logical vector of length length(new) (or 1
which entails recycling).
For those new[i] where override.check[i] == TRUE, the
checks are overridden and the changes made anyway.
Value
A list of components with the same names as the one called
name.opt.
The values of the components are changed from the new list,
as long as these pass the checks (when these are not overridden
according to override.check).