gui {svGUI}R Documentation

A GUI object

Description

The 'gui' object contains and manages GUI-related data.

Usage

## S3 method for class 'gui'
gui$x, args
## S3 method for class 'gui'
print(x, ...)
is.gui(x)

Arguments

x

a function for $, or an object for the others.

gui

a 'gui' object.

args

arguments to pass to the function.

...

further arguments (not used yet).

Details

Methods for 'gui' objects can dispatch as usuang using amethod(...., gui = agui) but note that these methods do not dispatch on first provided argument, but to the named argument gui. There is another way to call 'gui' methods: agui$amethod(....). This may be a convenient alternative for those who prefer this style of calling object's methods.

Value

The result of the evaluation of the method of function applied for agui$amethod(....). The 'gui' object, invisibly, for print(). TRUE for is.gui(x) if the object x inherits from 'gui', FALSE otherwise.

Note

The 'gui' objects are not terribly useful by themselve, but thay provide the fundation for a flexible organisation of GUI elements in R (see for instance svDialogs or svWidgets).

Author(s)

Philippe Grosjean <phgrosjean@sciviews.org>

See Also

guiAdd

Examples

## Create a GUI
guiAdd("myGUI")
is.gui(myGUI)
myGUI
guiRemove("myGUI")

[Package svGUI version 0.9-55 Index]