| RGtk {RGtk2} | R Documentation |
RGtk2 provides a set of bindings between R and the GTK+ library and several of its dependent libraries. It allows the user to construct full-featured GUI's completely from within R.
RGtk2 binds to the following libraries:
PangoLayout object, representing a
paragraph of text. Pango provides the engine for GtkTextView,
GtkLabel, GtkEntry, and other widgets that display text.GtkButton or GtkTextView.GdkPixbuf in combination with GtkImage to display images.RGtk2 also partially binds some lower-level libraries in order to support the bindings to the others. These include GObject and GMainLoop.
R objects passed between the user and RGtk2 are either primitive types
(character, logical, etc) or external objects (externalptr). All
R objects wrapping external objects extend the RGtkObject class.
As described above, RGtk2 binds many libraries beyond GTK+ itself. Thus, it can serve many purposes besides GUI construction. For example, GDKPixbuf and Cairo allow the R user to produce arbitary high-quality graphics.
There are also possibilities of integration with other R packages that bind to a GObject-based API, such as Rggobi (to GGobi, http://www.ggobi.org/).
Michael Lawrence, with excerpts from library documentation