Return all named arguments from parent function call
cmd_args_named(keep = NULL, drop = NULL)
keep | name of arguments to keep |
---|---|
drop | name of arguments to drop (NOTE: keep or drop are mutually exclusive settings) |
named list of all defined function arguments from parent
theFunction <- function(arg1, ...) { cmd_args_named() } theNamedArgs <- theFunction(arg1 = "test", example = "hello")