traceMethods             package:RBioinf             R Documentation

_A _f_u_n_c_t_i_o_n _t_o _t_u_r_n _o_n _t_r_a_c_i_n_g _f_o_r _a_l_l _m_e_t_h_o_d_s _o_f _a _S_4 _g_e_n_e_r_i_c
_f_u_n_c_t_i_o_n.

_D_e_s_c_r_i_p_t_i_o_n:

     This function can turn on tracing for all methods (or a subset of
     the methods) of a generic function.  It is useful when debugging,
     as it can help see how the methods are being traversed.

_U_s_a_g_e:

     traceMethods(generic, traceStrings, tracer)
     untraceMethods(generic, methodSigs)

_A_r_g_u_m_e_n_t_s:

 generic: The name of the generic function, quoted or not. 

traceStrings: A string to print when each method is entered. 

  tracer: A function to insert as the tracer, if missing a function
          that prints the methods signature is used.

methodSigs: A set of method signatures, as a character vector,  that
          tracing will be turned off for.

_D_e_t_a_i_l_s:

     'traceMethods' uses 'showMethods' to figure out what methods 
     exist, and what the signatures are. It then uses 'trace' to set a
     trace on all methods.

     'untraceMethods' uses the returned value of 'traceMethods', or any
     other similar construct to untrace methods for a generic.

_V_a_l_u_e:

     A vector of method signatures is returned.  This could be then 
     used to untrace the methods (something else to automate).

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'showMethods', 'trace'

_E_x_a_m_p_l_e_s:

     ## Not run: 
        traceMethods{slice}
        untraceMethods{slice}
     ## End(Not run)

