Learn R Programming

rlang (version 0.1.6)

caller_env: Get the environment of the caller frame

Description

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.

Usage

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.

See Also

call_frame()