augment: Manipulate a deferred function.

Description Usage Arguments Value Examples

Description

Pass a value in place of an argument. This function will modify the input object.

Usage

1
augment(deferred, ...)

Arguments

deferred

A deferred function wrapper.

...

Name-value pairs, where name is the name of an argument to the entry function.

Value

Modified deferred function wrapper. Note that the original function object is also modified.

Examples

1
2
3
4
d <- defer(function(a, b, c) return(a+b+c))
d <- augment(d, a = 1, b = 2, c = 3)
d()
#> 6

lbartnik/defer documentation built on May 20, 2019, 8:27 p.m.