binder: Binder factory

Description Usage Arguments Value Examples

Description

Binder factory

Usage

1
binder(parent = .binder, callback = function(binder) binder)

Arguments

parent

of the new binder, injection will propagate up the parent stack looking for keys; if omitted defaults to root binder

callback

called with the newly created binder and the result is returned; if omitted just the new binder is returned

Value

result of the injected callback if one is specified, otherwise the new binder

Examples

1
b <- binder ()

dfci-cccb/injectoR documentation built on May 15, 2019, 5:12 a.m.