The help page says:
"Calling match.call outside a function without specifying definition
is an error."
And yet when I send a function with a 'definition' argument it errors:
> g
function(x, y=NULL, z=NULL) invisible(NULL)
> match.call(definition=g)
Error in match.call(definition, call, expand.dots) :
unused argument(s) (definition = g)
I wondered if this had something to do with primitive functions and
their ignoring names but:
> is.primitive(match.call)
[1] FALSE
Calling with an unnamed first argument succeeds:
> match.call(g )
match.call(x = g)
--
David Winsemius, MD
Alameda, CA, USA
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.