safe.call {ggplot2} | R Documentation |
safe.call
works like do.call
but it will only supply arguments that exist in the function specification.
safe.call(f, params, f.params = names(formals(f)), ignore.dots = TRUE)
f |
function to call |
params |
parameter names of function |
f.params |
|
ignore.dots |
If ... is present in the param list, all parameters will be passed through
unless ignore.dots = TRUE
. Positional arguments are not currently
supported.
Hadley Wickham <h.wickham@gmail.com>