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)

