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)

## Arguments

n The number of generation to go back. Note that contrarily to call_frame(), 1 represents the parent frame rather than the current frame.

call_frame()