Skip to content
Prev 345705 / 398502 Next

Fine controlling "three dots" argument dispatch to functions with identical argument names

On 15/11/2014, 11:26 AM, Jeff Newmiller wrote:
That's the best solution.  There is another one:  you can put

args <- list(...)

into foobar(), and then do whatever you like to the args vector, and put
together calls to foo() and bar() using do.call().  But this is hard to
read and easy to get wrong, so I recommend Jeff's simple solution.

Duncan Murdoch