Helper function to merge default and user-specified dot (...)
arguments such that default arguments are overwritten by the user-specified
arguments.
Usage
get_dot_args(user_args, default_args)
Arguments
- user_args
List of user-specified dot (...) arguments.
- default_args
List of default dot (...) arguments.
Value
A named list of arguments that includes all arguments from the user
and the defaults, but with the user-specified arguments overwriting the
defaults.
Examples
arg_list <- get_dot_args(user_args = list(a = 1, b = 2, c = 3),
default_args = list(a = "a", d = "d"))