Merge the parameters from a partial list and the default list
setParams(opts, defaultOpt, keepNotMatching = FALSE)
a partial list of parameters
a list with default values for every element
[FALSE] if TRUE, copy the elements appearing in opts
, but not in
defaultOpt
to the return value. If FALSE, do not copy them, but issue a warning.
a list combined from opts
and defaultOpt
where every available element
in opts
overrides the default. For the rest of the elements the value from defaultOpt
is taken.
A warning is issued for every element appearing in opts
but not in defaultOpt
(only if keepNotMatching==FALSE
).