\HeaderA{getLocalPkgs}{A function to list the locally installed packages}{getLocalPkgs}
\keyword{utilities}{getLocalPkgs}
\begin{Description}\relax
Will return a list of \code{pkgInfo} objects describing the locally
installed packages in the library directories specified.
\end{Description}
\begin{Usage}
\begin{verbatim}
getLocalPkgs(pkgs, libs = reposToolsLibPaths())
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{pkgs}] A list of packages to get information for
\item[\code{libs}] Library directories to check.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Will retrieve \code{\LinkA{pkgInfo}{pkgInfo}} objects for installed packages.
If the \code{pkgs} argument is specified, only these packages will be
used, otherwise all installed packages will be used.
\end{Details}
\begin{Value}
A list of \code{pkgInfo} objects.
\end{Value}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{pkgInfo}, \code{\LinkA{reposToolsLibPaths}{reposToolsLibPaths}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
   getLocalPkgs()
\end{ExampleCode}
\end{Examples}


