pmg {pmg}R Documentation

A function to start the pmg GUI

Description

The PMG GUI is a simple GUI for R using RGtk2 as the graphical toolkit. The GUI is written using the gWidgets interface to a toolkit.

Usage

pmg(cliType="console",  width=850, height=.75*width,guiToolkit="RGtk2")

pmg.add(widget,label)

pmg.gw(lst, label=NULL)

pmg.addMenubar(menulist)

pmg.eval(command, assignto=NULL)

Arguments

cliType Where to send output of function called within pmg? This can be either "console" to put output into console that called pmg, or "GUI" to put output into a widget.
width Width in pixels of initial window
height height in pixels of initial window
guiToolkit Specify toolkit to use with gWidgets
widget A gWidgets widget to add to the main notebook for holding dialogs
label A string containing a label to put on the tab when adding a widget to the main notebook for holding dialogs
lst A value passed to ggenericwidget. Can be a list, a function name or a function
menulist A list passed to gmenu for adding to the menubar
command A string containing a command to be parsed and evaluated in the global environement
assignto If non-NULL, a variable name to assign the output generated from evaluating the command

Details

The user can add to the menubar at start up time by defining a list that is called by gmenu. PMG look for a variable pmg.user.menu. This is a list with named components. Each name becomes the menubar entry top level, and each component is called by gmenu to populate the menubar entry.

The functions pmg.add, pmg.gw, pmg.addMenubar, and pmg.eval are used to extend the GUI.

description{

pmg.add
This is used to add a widget to the main notebook containing the dialogs
pmg.gw
This is used to add a ggenericwidget instance to the main notebook containing the dialogs. These widgets can be generated from a function name using the values from formals
pmg.addMenubar
Used to add top-level entries to the main menubar
pmg.eval
Used to send a command, as a string, to the Commands area to be evaluated. Evaluation is done in the global environment.
}

Author(s)

John Verzani

References

See http://www.amstat.org/publications/jse/v16n1/verzani.html for a description of the dynamic dialogs in pmg.

Examples

## Not run: 
## this restarts the GUI if the main window has been closed
pmg()
## End(Not run)

[Package pmg version 0.9-38 Index]