rlang (version 0.0.0.9000)

caller_env: Get the environment of the caller frame.

Description

This is a shortcut for call_frame(2)$env.

Usage

caller_env(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()