GClosure                package:RGtk2                R Documentation

_T_h_e _G_C_l_o_s_u_r_e _s_t_r_u_c_t_u_r_e

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

     Basically, a 'GClosure' is a transparent-type that represents an R
     function.

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

     toRGClosure(c_closure)

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

c_closure: a 'GClosure'

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

     When an API function requests a 'GClosure' as a parameter, the
     user may pass any R function OR  an R object of class 'GClosure'
     that is returned by certain API functions. A 'GClosure' represents
     an external object and thus inherits from 'RGtkObject'. The
     external 'GClosure' objects may be coerced by the function
     'toRGClosure'  to an R closure. This means that you can
     effectively invoke external closures  (which may be implemented in
     C or R) in the same way as R functions.

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

     an R closure with an extra 'ref' attribute holding the original
     external reference

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

     Michael Lawrence

