getAnywhere              package:utils              R Documentation

_R_e_t_r_i_e_v_e _a_n _R _O_b_j_e_c_t, _I_n_c_l_u_d_i_n_g _f_r_o_m _a _N_a_m_e_s_p_a_c_e

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

     This functions locates all objects with name matching its
     argument, whether visible on the search path, registered as an S3
     method or in a namespace but not exported.

_U_s_a_g_e:

     getAnywhere(x)

_A_r_g_u_m_e_n_t_s:

       x: a character string or name.

_D_e_t_a_i_l_s:

     The function looks at all loaded namespaces, whether or not they
     are associated with a package on the search list.

     Where functions are found as an S3 method, an attempt is made to
     find which namespace registered them.  This may not be correct,
     especially if a namespace is unloaded.

_V_a_l_u_e:

     An object of class '"getAnywhere"'.  This is a list with
     components 

    name: the name searched for.

    funs: a list of objects found

   where: a character vector explaining where the object(s) were found

 visible: logical: is the object visible

    dups: logical: is the object identical to one earlier in the list.


     Normally the structure will be hidden by the 'print' method. There
     is a '[' method to extract one or more of the objects found.

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

     'get',  'getFromNamespace'

_E_x_a_m_p_l_e_s:

     getAnywhere("format.dist")
     getAnywhere("simpleLoess") # not exported from stats

