\Header{search}{Give Search Path for R Objects}
\alias{searchpaths}{search}
\keyword{data}{search}
\begin{Description}\relax
Gives a list of \code{\Link{attach}}ed \emph{packages}
(see \code{\Link{library}}), and \R{} objects, usually
\code{\Link{data.frame}s}.\end{Description}
\begin{Usage}
\begin{verbatim}
search()
searchpaths()
\end{verbatim}
\end{Usage}
\begin{Value}
A character vector, starting with \code{"\Link{.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{\Link{attach}} and \code{\Link{detach}} to change the
search \dQuote{path}, \code{\Link{objects}} to find \R{} objects in there.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
search()
searchpaths()
\end{ExampleCode}
\end{Examples}

