Learn R Programming

pryr (version 0.1.6)

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

Run this code
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)

Run the code above in your browser using DataLab