Get properties of the current or caller frameSource:
These accessors retrieve properties of frames on the call stack. The prefix indicates for which frame a property should be accessed:
From the current frame with
From a calling frame with
From a matching frame with
The suffix indicates which property to retrieve:
_fnaccessors return the function running in the frame.
_callaccessors return the defused call with which the function running in the frame was invoked.
_envaccessors return the execution environment of the function running in the frame.
current_call() current_fn() current_env() caller_call(n = 1) caller_fn(n = 1) caller_env(n = 1) frame_call(frame = caller_env()) frame_fn(frame = caller_env())
The number of callers to go back.
A frame environment of a currently running function, as returned by
NULLis returned if the environment does not exist on the stack.