gtkInit                package:RGtk2                R Documentation

_G_T_K+ _i_n_i_t_i_a_l_i_z_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Initializes the GTK+ library, returning 'TRUE' on success.

_U_s_a_g_e:

     gtkInit(args="R")

_A_r_g_u_m_e_n_t_s:

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

_D_e_t_a_i_l_s:

     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'.

_V_a_l_u_e:

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

_A_u_t_h_o_r(_s):

     Michael Lawrence

