Rev 68017 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/base/man/conflicts.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{conflicts}\title{Search for Masked Objects on the Search Path}\usage{conflicts(where = search(), detail = FALSE)}\alias{conflicts}\arguments{\item{where}{A subset of the search path, by default the whole search path.}\item{detail}{If \code{TRUE}, give the masked or masking functions forall members of the search path.}}\description{\code{conflicts} reports on objects that exist with the same name intwo or more places on the \code{\link{search}} path, usually becausean object in the user's workspace or a package is masking a systemobject of the same name. This helps discover unintentional masking.}\value{If \code{detail = FALSE}, a character vector of masked objects.If \code{detail = TRUE}, a list of character vectors giving the masked ormasking objects in that member of the search path. Empty vectors areomitted.}\examples{lm <- 1:3conflicts(, 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)}\keyword{utilities}