Alters the built-in function match.call()
by providing an
additional argument which means that by default a user can specify
how far up the call stack they want to match a call of. See
match.call() for more details.
match.call2( n = 0L, definition = sys.function(sys.parent(n + 1L)), call = sys.call(sys.parent(n + 1L)), expand.dots = TRUE, envir = parent.frame(n + 3L) )
n | How far up the call-stack they would like to extract. The default,
|
---|---|
definition | a function, by default the function from which
|
call | an unevaluated call to the function specified by
|
expand.dots | logical. Should arguments matching |
envir | an environment, from which the |
An object of class call
f <- function(n) { g(n) } g <- function(n) { h(n) } h <- function(n) { match.call2(n) } f(0)#> h(n = n)f(1)#> g(n = n)f(2)#> f(n = 2)