gtkInit {RGtk2}R Documentation

GTK+ initialization

Description

Initializes the GTK+ library, returning TRUE on success.

Usage

gtkInit(args="R")

Arguments

args Command-line arguments to pass to GTK+. The first token is the program name (by default 'R').

Details

This is always called upon the loading of RGtk2, but it is also useful for checking whether GTK+ has been successfully initialized (calling it multiple times is harmless). This allows, for example, preventing the execution of examples in a headless environment (where GTK+ fails to initialize) during R CMD check.

Value

TRUE if initialization suceeded, FALSE if GTK+ cannot run in the current environment (such as in a headless shell).

Author(s)

Michael Lawrence


[Package RGtk2 version 2.12.5-3 Index]