update_settings {hgutils} | R Documentation |
Update default function settings
Description
Uses ellipsis parameter to update a list of default settings.
Usage
update_settings(default, ...)
Arguments
default |
named list of default values for settings. |
... |
optional settings values to override the default settings. |
Value
The updated list of settings with updated values.
See Also
Other developer functions:
crossref_description()
,
generic_implementations()
,
load_packages()
,
valid_pkgname()
Examples
foo = function(...) {
default = list(a=1)
settings = update_settings(default, ...)
}
## Not run: foo(a=2, b=3)
[Package hgutils version 0.2.11 Index]