rpanel (version 1.1-4)

rp.widget.dispose: Removes a widget

Description

This will dispose/remove a widget from a panel.

Usage

rp.widget.dispose(panel, name)

Arguments

panel

the panel on which the text should disappear.

name

the name assigned to the widget on creation.

Details

This will dispose of a widget and its memory usage.

References

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

See Also

rp.control

Examples

Run this code
# 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