Let's say I have a function with with many arguments (e.g., plot()
).
I want to add a bit of functionality to that function by creating a wrapper function around that function.
Random example:
plot.new <- function() { windows(width = 10, height = 10) plot() }
My question: How do I make it so that the internal function's arguments can be provided in my new wrapper function?
- How can I do so without retyping all the argument names from the internal function when defining my wrapper function?