gtkInit {RGtk2} | R Documentation |
Initializes the GTK+ library, returning TRUE
on success.
gtkInit(args="R")
args |
Command-line arguments to pass to GTK+. The first token is the program name (by default 'R'). |
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
.
TRUE
if initialization suceeded, FALSE
if GTK+ cannot run
in the current environment (such as in a headless shell).
Michael Lawrence