[R] How to get function arguments as list?

Robert Latest boblatest at gmail.com
Sun Feb 9 13:14:47 CET 2014


Hello all,

To set options in a package I'm putting together I'd like to write a
function like options, that is:

my.options <- function(...) {
# ...
}

Now I'd like to access the named arguments that were passed to my
funtion within that function. How does that work? formals() doesn't do
it, neither does args() or alist().

How is that done?

Thanks,
robert



More information about the R-help mailing list