parent_promise: Find the parent (first) promise.

Description Usage Arguments Examples

View source: R/promise.r

Description

Find the parent (first) promise.

Usage

1

Arguments

x

unquoted name of promise to find initial value for for.

Examples

1
2
3
4
5
6
7
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)

hadley/pryr documentation built on Feb. 20, 2018, 6:11 a.m.