\HeaderA{search}{Give Search Path for R Objects}{search}
\aliasA{searchpaths}{search}{searchpaths}
\keyword{data}{search}
\begin{Description}\relax
Gives a list of \code{\LinkA{attach}{attach}}ed \emph{packages}
(see \code{\LinkA{library}{library}}), and \R{} objects, usually
\code{\LinkA{data.frame}{data.frame}s}.
\end{Description}
\begin{Usage}
\begin{verbatim}
search()
searchpaths()
\end{verbatim}
\end{Usage}
\begin{Value}
A character vector, starting with \code{"\LinkA{.GlobalEnv}{.GlobalEnv}"}, and
ending with \code{"package:base"} which is \R's \pkg{base} package
required always.

\code{searchpaths} gives a similar character vector, with the
entries for packages being the path to the package used to load the
code.
\end{Value}
\begin{References}\relax
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
\emph{The New S Language}.
Wadsworth \& Brooks/Cole. (\code{search}.)

Chambers, J. M. (1998)
\emph{Programming with Data. A Guide to the S Language}.
Springer. (\code{searchPaths}.)
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{.packages}{.packages}} to list just the packages on search path.

\code{\LinkA{loadedNamespaces}{loadedNamespaces}} to list loaded name spaces.

\code{\LinkA{attach}{attach}} and \code{\LinkA{detach}{detach}} to change the
search \dQuote{path}, \code{\LinkA{objects}{objects}} to find \R{} objects in there.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
search()
searchpaths()
\end{ExampleCode}
\end{Examples}

