misc_argument_catcher {kdry} | R Documentation |
Miscellaneous helper function to type-save catch arguments passed with R's ellipsis ("...").
misc_argument_catcher(...)
... |
Named arguments passed to a function. |
This function aims at catching arguments that have been passed to an R function using R's ellipsis ("..."). Its purpos is to catch these arguments even in the case, if a list with arguments was provided to the ellipsis.
A list
is returned.
misc_argument_catcher(a = 1)
misc_argument_catcher(a = 1, b = 2, c = 3, d = "car")
misc_argument_catcher(list(a = 1, b = 2, c = 3, d = "car"))
misc_argument_catcher(list(a = 1, b = 2, c = 3, d = "car"), f = 9)