rp.panel {rpanel} | R Documentation |
Returns the most recently created panel or a named (by passing the name as a string parameter) panel.
rp.panel(panelname = rp.panelname(new = FALSE))
panelname |
optional string parameter. If set the panel of that name is returned, if not set the most recently created panel is returned. |
If panelname is set the panel of that name is returned, if not set the most recently created panel is returned.
Note: returning of the most recent panel may fail when running R on a Windows machine in DOS. A warning is contained within the function.
rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.
if (interactive()) { # create a panel - will be created in .rpenv as "newpanel" rp.control(realname = "newpanel") # creates the panel, but does not return a handle to it - created as ".rpanel2" rp.control() # pick up the first panel panel2 <- rp.panel("newpanel") # gets a handle to the latest panel created panel <- rp.panel() }