CallbackFunction-class     package:Combinations     R Documentation

_C_l_a_s_s "_C_a_l_l_b_a_c_k_F_u_n_c_t_i_o_n" _a_c_t_i_n_g _a_s _a_n _e_v_e_n_t _h_a_n_d_l_e_r _o_r _c_a_l_l_b_a_c_k _f_u_n_c_t_i_o_n.

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

     The idea of this is to have a function that acts as an
     asynchronous event handler or a method for a mutable object in the
     sense of a Java, C++ or Python. We can use this as a regular
     function in R, but we can also use convenience functions ('\$' and
     'names') to access the environment of the function and the
     mutable, dynamic variables.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form
     'new("CallbackFunction", function(...) # body)'. These are regular
     function objects with the additional methods for accessing the
     mutable values associated with them and their environment.

_S_l_o_t_s:


     '._D_a_t_a': Object of class '"function"'

_E_x_t_e_n_d_s:

     Class '"function"', from data part. Class '"OptionalFunction"', by
     class '"function"'. Class '"PossibleMethod"', by class
     '"function"'.

_M_e_t_h_o_d_s:


     $ 'signature(x = "CallbackFunction")': access a particular
          variable in the function's environment.

     _n_a_m_e_s 'signature(x = "CallbackFunction")': get a list of all the
          objects in the function's environment. 

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

     Duncan Temple Lang <duncan@wald.ucdavis.edu>

_R_e_f_e_r_e_n_c_e_s:

     S4 classes and methods.

_S_e_e _A_l_s_o:

     'names' '$'

