conflicts                package:base                R Documentation

_S_e_a_r_c_h _f_o_r _M_a_s_k_e_d _O_b_j_e_c_t_s _o_n _t_h_e _S_e_a_r_c_h _P_a_t_h

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

     'conflicts' reports on objects that exist with the same name in
     two or more places on the 'search' path, usually because an object
     in the user's workspace or a package is masking a system object of
     the same name.  This helps discover unintentional masking.

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

     conflicts(where=search(), detail=FALSE)

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

   where: A subset of the search path, by default the whole search
          path.

  detail: If 'TRUE', give the masked or masking functions for all
          members of the search path.

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

     If 'detail=FALSE', a character vector of masked objects. If
     'detail=TRUE', a list of character vectors giving the masked or
     masking objects in that member of the search path.  Empty vectors
     are omitted.

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

     lm <- 1:3
     conflicts(, TRUE)
     ## gives something like
     # $.GlobalEnv
     # [1] "lm"
     #
     # $package:base
     # [1] "lm"

     ## Remove things from your "workspace" that mask others:
     remove(list = conflicts(detail=TRUE)$.GlobalEnv)

