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

parent_promise

Find the parent (first) promise.


Description

Find the parent (first) promise.

Usage

parent_promise(x)

Arguments

x

unquoted name of promise to find initial value for for.

Examples

f <- function(x) g(x)
g <- function(y) h(y)
h <- function(z) parent_promise(z)

h(x + 1)
g(x + 1)
f(x + 1)

pryr

Tools for Computing on the Language

v0.1.4
GPL-2
Authors
Hadley Wickham [aut, cre], R Core team [ctb] (Some code extracted from base R)
Initial release

We don't support your browser anymore

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