Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

caller_fn

Get properties of the current or caller frame


Description

Experimental lifecycle
  • The current frame is the execution context of the function that is currently being evaluated.

  • The caller frame is the execution context of the function that called the function currently being evaluated.

See the call stack topic for more information.

Usage

caller_fn(n = 1)

current_fn()

Arguments

n

The number of generations to go back.

Life cycle

These functions are experimental.

See Also


rlang

Functions for Base Types and Core R and 'Tidyverse' Features

v0.4.11
MIT + file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], mikefc [cph] (Hash implementation based on Mike's xxhashlite), Yann Collet [cph] (Author of the embedded xxHash library), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.