It can accept an arbitrary number of formal parameters. In base R these parameters are often arguments to other functions. The Arguments
description in the function's help page should indicate which subsequent functions will be getting these arguments. It can be the only argument, the first, the last, or it can be intercalated in the parameter list. The items in the list(...)
generally should be named. You can access the items in the "dots" list in a couple of different ways: ...()
and list(...)
are two that I've seen. Generally, it is the R-cognoscenti that will be designing functions with these forms. When it is intercalated (or the first), the named parameters that follow it in the formals must be named when the function is called and cannot be assigned positionally. If you type ?'...'
you will be shown the Reserved
page, which in turn has a link to dotsMethods {methods}
.
I found it difficult to search for [r]
with "..." using a SO search panel but searching on "[r] dotsMethods" brought up 10 hits.