Replace default elements in a named list with corresponding elements in a new list.
replace_default(
default_param,
new_param,
add_new = FALSE,
warning_context = NULL
)
A named list where overlapping elements with overlapping names are replaced.
Named list with elements to potentially replace ("defaults").
Named list with elements to replace with.
Logical, if TRUE elements with names unique to new_param
will be added to the output.
String to add to the beginning of warning message if any unsupported parameters are detected (if add_new is FALSE). Default (NULL) produces no warning.