Learn R Programming

injectoR (version 0.2.4)

binder: 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

Run this code
b <- binder ()

Run the code above in your browser using DataLab