thing: Make a Thing

Description Usage Arguments Value Examples

View source: R/thing.R

Description

A "thing" is a special object made based on a module. Contains an active binding, defined with the 'dot' argument.

Usage

1
2
thing(..., dot, parent = parent.frame(), lock = TRUE,
  expose_private = FALSE)

Arguments

...

module expression

dot

function expression used for active binding to '.'

parent

the enclosing environment

lock

lock the environment; logical

expose_private

expose the private environment as '..private..'; logical

Value

a module containing an active binding

Examples

1
2
3
4
5
6
7
my_thing <- mod::thing({
    a <- 1
}, dot = function() a)

my_thing$.

my_thing[]

mod documentation built on Aug. 23, 2019, 5:05 p.m.

Related to thing in mod...