Is there a way of getting the argument list of a function from within that function? For example, something like

f <- function(x, y = 3) {
        fargs <- getFunctionArgList()
        print(fargs)  ## Should be `alist(x, y = 3)'
}

Thanks,

-roger

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to