caller_env

0th

Percentile

Get the environment of the caller frame

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

Aliases
  • caller_env
  • caller_frame
  • caller_fn
Documentation reproduced from package rlang, version 0.1.6, License: GPL-3

Community examples

Looks like there are no examples yet.