thing {mod} | R Documentation |
A "thing" is a special object made based on a module. Contains an active binding, defined with the 'dot' argument.
thing(..., dot, parent = parent.frame(), lock = TRUE,
expose_private = FALSE)
... |
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 |
a module
containing an active binding
my_thing <- mod::thing({
a <- 1
}, dot = function() a)
my_thing$.
my_thing[]