Description Usage Arguments Value Author(s) References See Also Examples
See generic: getBinding
1 2 | ## S4 method for signature 'character,environment'
getBinding(id, where = parent.frame(), ...)
|
id |
|
where |
|
... |
Further arguments to be passed to subsequent functions/methods. |
function
. Binding function.
Janko Thyson janko.thyson@rappster.de
http://github.com/Rappster/reactr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
## Start with fresh registry //
resetRegistry()
## Reactive object w/o references //
setReactive(id = "x_1", value = 10)
(binding <- getBinding(id = "x_1"))
identical(binding, getFromRegistry("x_1")$.func)
## Reactive object with references //
setReactive(id = "x_2", value = function() "object-ref: {id: x_1}")
(binding <- getBinding(id = "x_2"))
identical(binding, getFromRegistry("x_2")$.func)
## Clean up //
rmReactive("x_1")
rmReactive("x_2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.