Unpacking argument lists for ellipsis in R
问题 I am confused by the use of the ellipsis ( ... ) in some functions, i.e. how to pass an object containing the arguments as a single argument. In Python it is called "unpacking argument lists", e.g. >>> range(3, 6) # normal call with separate arguments [3, 4, 5] >>> args = [3, 6] >>> range(*args) # call with arguments unpacked from a list [3, 4, 5] In R for instance you have the function file.path(...) that uses an ellipsis. I would like to have this behaviour: > args <- c('baz', 'foob') >