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"

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

