suppressMessages(require("reactr"))
Example objects
setReactive(id = "x_1", value = 10) setReactive(id = "x_2", value = function() "object-ref: {id: x_1}")
computeObjectUid(id = "x_1") computeObjectUid(id = "x_2")
copyReactive(id_from = "x_1", id_to = "x_1_copy") x_1_copy
getReactive(id = "x_1") getReactive(id = "x_1", hidden = TRUE) getReactive(id = "x_2")
isReactive(id = "x_1") isReactive(id = "x_2") x_3 <- "hello world!" isReactive(id = "x_3")
unsetReactive(id = "x_1") isReactive(id = "x_1")
rmReactive(id = "x_1") exists("x_1") ## --> already unset rmReactive(id = "x_2") exists("x_2")
Example objects
setReactive(id = "x_1", value = 10) setReactive(id = "x_2", value = function() { "object-ref: {id: x_1}" x_1 * 2 })
getBinding(id = "x_1") getBinding(id = "x_2")
getChecksum(id = "x_1") getChecksum(id = "x_2")
getReactive(id = "x_1", hidden = TRUE) getReactive(id = "x_2", hidden = TRUE)
showPullRefs(id = "x_1") showPullRefs(id = "x_2")
showPushRefs(id = "x_1") showPushRefs(id = "x_2") setReactive(id = "x_2", value = function() { "object-ref: {id: x_1}" x_1 * 2 }, push = TRUE) showPushRefs(id = "x_2")
Clean up
rmReactive("x_1") rmReactive("x_2")
Example objects
setReactive(id = "x_1", value = 10) setReactive(id = "x_2", value = function() "object-ref: {id: x_1}")
reg <- getRegistry() ls(reg)
showRegistry()
getFromRegistry(id = "x_1") getFromRegistry(id = "x_2") getFromRegistryByUid(computeObjectUid("x_1")) getFromRegistryByUid(computeObjectUid("x_2"))
computeObjectUid("x_1") %in% showRegistry() rmFromRegistry("x_1") computeObjectUid("x_1") %in% showRegistry() computeObjectUid("x_2") %in% showRegistry() rmFromRegistryByUid(computeObjectUid("x_2")) computeObjectUid("x_2") %in% showRegistry()
## Ensure content that might previously have been removed // setReactive(id = "x_1", value = 10) setReactive(id = "x_2", value = function() "object-ref: {id: x_1}") ## Reset // showRegistry() resetRegistry() showRegistry()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.