This will dispose/remove a widget from a panel.
rp.widget.dispose(panel, name)
the panel on which the text should disappear.
the name assigned to the widget on creation.
This will dispose of a widget and its memory usage.
rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.
rp.control
# NOT RUN { p1 <- rp.control() rp.button(p1, I, "press me", name="b1") rp.widget.dispose(p1, "b1") # }
Run the code above in your browser using DataCamp Workspace