\HeaderA{installFoundDepends}{A function to install unresolved dependencies}{installFoundDepends}
\keyword{utilities}{installFoundDepends}
\begin{Description}\relax
This function will take the \code{Found} element of a
\code{pkgDependsList} object and attempt to install 
all of the listed packages from the specified repositories.
\end{Description}
\begin{Usage}
\begin{verbatim}
installFoundDepends(depPkgList, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{depPkgList}] A \code{Found} element from a \code{pkgDependsList} object
\item[\code{...}] Arguments to pass on to \code{\LinkA{install.packages}{install.packages}}
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function takes as input the \code{Found} list from a
\code{pkgDependsList} object.  This list will have element names being
URLs corresponding to repositories and the elements will be vectors of
package names.  For each element, \code{\LinkA{install.packages}{install.packages}} is
called for that URL to install all packages listed in the vector.
\end{Details}
\begin{Author}\relax
Jeff Gentry
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{pkgDepends}{pkgDepends}}, \code{\LinkA{install.packages}{install.packages}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Set up a temporary directory to install packages to
tmp <- tempfile()
dir.create(tmp)

pDL <- pkgDepends("tools",local=FALSE)
installFoundDepends(pDL$Found, destdir=tmp)
\end{ExampleCode}
\end{Examples}

