gWidgetsRGtk2

Description

This package provides an implementation of the gWidgets API using the RGtk2 package. This excellent package allows the R programmer to use the GTK+ libraries within R.

Installation

This package requires the RGtk2 to work. This in turn needs the GTK+ libraries, version 2.8 or newer, installed. These libraries are cross-platform, but may need installation:

Linux

This should be standard for most modern versions of linux.

Mac OS X

A packaged version is available from http://r.research.att.com/.

However, this version may not work with the cairoDevice package. What does work is to a) install the XCode software (which may be standard with the OS) b) install macports c) install gtk2 through mac ports via sudo port install gtk2 With this, the RGtk2 package will install, but you need to do so from source: install.packages("RGtk2", type="source")

Windows

There is an installer for windows at http://gladewin32.sourceforge.net/ There are some oddities in this port with background colors in notebooks, menus, and the gdf widget handling NA values.

Documentation

The main source for documentation is in the package gWidgets. Differences from that API spelled out there in the help files are documented (hopefully) in the help page for gWidgetsRGtk2 which can be read with ?gWidgetsRGtk2 The gWidgets API is in need of fine tuning, but for the most part is spelled out in these pages.

The gWidgets package also has a vignette with many examples. As of version 0.0-29 this is in need of updating, so some examples may not work.

The gWidgets website has several examples available to try out.

Other R packages using gWidgets

The packages FAir, playwith, and pmg use gWidgetsRGtk2. They can be consulted as another source of examples.

05/17/2008: gWidgetsRGtk2_0.0-34

New version which fixes a bug in gcheckboxgroup and add to the method [<-.