binder {injectoR}R Documentation

Binder factory

Description

Binder factory

Usage

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

b <- binder ()

[Package injectoR version 0.2.4 Index]