TraceClasses             package:methods             R Documentation

_C_l_a_s_s_e_s _U_s_e_d _I_n_t_e_r_n_a_l_l_y _t_o _C_o_n_t_r_o_l _T_r_a_c_i_n_g

_D_e_s_c_r_i_p_t_i_o_n:

     The classes described  here are used by the R function 'trace' to
     create versions of functions and methods including browser calls,
     etc., and also to 'untrace' the same objects.

_U_s_a_g_e:

     ### Objects from the following classes are generated
     ### by calling trace() on an object from the corresponding
     ### class without the "WithTrace" in the name.

     "functionWithTrace"
     "MethodDefinitionWithTrace"
     "MethodWithNextWithTrace"
     "genericFunctionWithTrace"
     "groupGenericFunctionWithTrace"

     ### the following is a virtual class extended by each of the
     ### classes above

     "traceable"

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects will be created from these classes by calls to 'trace'.
     (There is an 'initialize' method for class '"traceable"', but you
     are unlikely to need it directly.)

_S_l_o_t_s:

     '._D_a_t_a': The data part, which will be '"function"' for class
          '"functionWithTrace"', and similarly for the other classes.

     '_o_r_i_g_i_n_a_l': Object of the original class; e.g., '"function"' for
          class '"functionWithTrace"'. 

_E_x_t_e_n_d_s:

     Each of the classes extends the corresponding untraced class, from
     the data part; e.g., '"functionWithTrace"' extends '"function"'.
     Each of the specific classes extends '"traceable"', directly, and
     class '"VIRTUAL"', by class '"traceable"'.

_M_e_t_h_o_d_s:

     The point of the specific classes is that objects generated from
     them, by function 'trace()', remain callable or dispatchable, in
     addition to their new trace information.

_S_e_e _A_l_s_o:

     function 'trace'

