[R] Getting the argument list within a function

Roger D. Peng rpeng at jhsph.edu
Tue Sep 14 16:48:10 CEST 2004

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)'



More information about the R-help mailing list