On Thu, May 3, 2018 at 8:28 AM, Hadley Wickham <h.wick...@gmail.com> wrote: > On Thu, May 3, 2018 at 8:00 AM, Gabe Becker <becker.g...@gene.com> wrote: >> As of 3.5.0 the ...length() function does exactly what you are asking for. >> Before that, I don't know of an easy way to get the length without >> evaluation via R code. There may be one I'm not thinking of though, I >> haven't needed to do this myself. > > dotlength <- function(...) length(nargs()) > > ?
Oops, I got a bit overzealous there: I mean dotlength <- function(...) nargs() (This is subtly different from calling nargs() directly as it will only count the elements in ...) Hadley -- http://hadley.nz ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel