R/dots.R
dots_n.Rd
This returns the number of arguments currently forwarded in ... as an integer.
...
dots_n(...)
Forwarded arguments.
fn <- function(...) dots_n(..., baz) fn(foo, bar) #> [1] 3