rp.control.put | R Documentation |
Sometimes an action function makes changes to the panel list object. When the action function is completed, the panel environment is updated. However, if there are other calls to action functions within the original action function, then the panel environment needs to be updated before these calls. This function achieves that.
rp.control.put(panelname, panel)
panelname |
the panelname of the relevant panel. This is usually identified as |
panel |
the relevant panel. |
rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.
rp.control
## Not run: action1 <- function(panel) { panel$x <- rnorm(1) rp.control.put(panel$panelname, panel) rp.do(panel, action2) panel } action2 <- function(panel) { print(panel$x) panel } panel <- rp.control(x = 0) rp.button(panel, action1, "new x") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.