The RGnomePrint package

The RGnomePrint package provides bindings to the gnome-print library and specifically the GnomePrintDialog, GnomePrinterWidget, GnomePrintContext, GnomePrintMaster and GnomePrintMasterPreview widgets. This allows one from within R to control all the aspects of printing in Gtk. These can be used to prompt the user for information about where and how to print, and then pass the relevant information to another Gtk/Gnome library that uses the gnome-print library to render itself to a printer or preview.

See the gnome print FAQ for more information and some examples.

Download

The current version is available as a GNU-zipped tar file RGnomePrint_0.1-0.tar.gz

Install

Installation of the package requires the RGtk package. And that package must have been installed using the --clean (or -c) argument, i.e.
 R CMD INSTALL --clean RGtk
in order to create the necessary libRGtk.so library needed by this package.

Next, you will need to install the gtkhtml library. (This may involve upgrading other dependent libraries.)

Given these dependencies, installing this RGnomePrint package can be as simple as

 R CMD INSTALL @PGK_NAME@

Running

To use this package within an R session, you will need to make libRGtk.so in <wherever>/RGtk/libs available to the dynamic loader. The simplest way to do this currently is to add this directory to your LD_LIBRARY_PATH setting as in
 setenv LD_LIBRARY_PATH  <wherever>/RGtk/libs:${LD_LIBRARY_PATH}
or
 export LD_LIBRARY_PATH=<wherever>/RGtk/libs:${LD_LIBRARY_PATH}

In the future, all of these issues may be taken care of automatically by R.

Windows

There is currently no version for this package for Windows available. One first needs gtkHTML working on Windows. Mail me to let me know of any interest in having it work on Windows.

Documentation

  • See the RGtk package.
  • FAQ
  • History of changes to the package.
  • Examples

    There are currently a few examples

    Related Packages

  • RGtk
    General R bindings for Gtk, allowing access to Gdk, Gtk and Gnome.
  • RGtkExtra
    Bindings for the gtk+extra library and its classes, including a data grid/sheet that provides the basic display for a spreadsheet,
  • RGtkViewers
    Higher-level R tools/functions using RGtk and RGtkHTML to display different types of data and information. The tools include
    • a simple HTML browser,
    • XML tree viewer,
    • color-scheme browser,
    • relational database viewer,
    • S4 class relationship viewer,
    • Gtk class, signal and property/arg viewer
    R plugin for Gnumeric
    A plugin for the Gnome spreadsheet Gnumeric. We can use RGtk to access and construct GUIs in Gnumeric since it is built using Gtk.
    Rggobi
    An interface from R to GGobi. We can access the Gtk components of GGobi using RGtk. Additionally, GGobi has an extensive plugin mechanism which allows one to write plugins in the S language. One can add GUI components using RGtk. (See examples in the R plugin module for GGobi.)
    SNetscape
    A plugin for Netscape that allows JavaScript code to call S functions and access S objects as well as allowing S to call JavaScript and communicate with other LiveConnect plugins.
    RSPython
    This package provides a mechanism for calling Python functions from R and vice-versa. This is used in the automated generation of the RGtk bindings between R and the C libraries of Gtk, Gnome, etc. We use the parser of the defs files provided by the pygtk interface.

  • Duncan Temple Lang <duncan@research.bell-labs.com>
    Last modified: Tue Mar 4 09:40:36 EST 2003