The gui
object contains and manages GUI-related data.
# S3 method for class 'gui'
gui$x
# S3 method for class 'gui'
print(x, ...)
is.gui(x)
# Create a GUI
gui_add("myGUI")
#> Graphical User Interface: myGUI
#> using widgets from: nativeGUI, textCLI
is.gui(myGUI)
#> [1] TRUE
myGUI
#> Graphical User Interface: myGUI
#> using widgets from: nativeGUI, textCLI
# Put an object in the GUI environment (fake button)
myGUI$button <- "my_button"
# Retrieve it
myGUI$button
#> [1] "my_button"
# Get the curent status of the GUI
myGUI$status
#> NULL
# Eliminate this GUI and all its objects
gui_remove("myGUI")