caller_env {rlang} | R Documentation |
caller_frame()
is a shortcut for call_frame(2)
and
caller_fn()
and caller_env()
are shortcuts for
call_frame(2)$env
call_frame(2)$fn
.
caller_env(n = 1) caller_frame(n = 1) caller_fn(n = 1)
n |
The number of generation to go back. Note that contrarily
to |