\Header{conflicts}{Search for Masked Objects on the Search Path}
\keyword{utilities}{conflicts}
\begin{Description}\relax
\code{conflicts} reports on objects that exist with the same name in
two or more places on the \code{\Link{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.\end{Description}
\begin{Usage}
\begin{verbatim}
conflicts(where=search(), detail=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{where}] A subset of the search path, by default the whole search path.
\item[\code{detail}] If \code{TRUE}, give the masked or masking functions for
all members of the search path.
\end{ldescription}
\end{Arguments}
\begin{Value}
If \code{detail=FALSE}, a character vector of masked objects.
If \code{detail=TRUE}, a list of character vectors giving the masked or
masking objects in that member of the search path.  Empty vectors are
omitted.\end{Value}
\begin{Author}\relax
B.D. Ripley\end{Author}
\begin{Examples}
\begin{ExampleCode}
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)
\end{ExampleCode}
\end{Examples}

