\Header{checkMD5sums}{Check and Create MD5 Checksum Files}
\alias{.installMD5sums}{checkMD5sums}
\keyword{utilities}{checkMD5sums}
\begin{Description}\relax
\code{checkMD5sums} checks the files against a file \code{MD5};
\code{.installMD5sums} creates such a file.
\end{Description}
\begin{Usage}
\begin{verbatim}
checkMD5sums(pkg, dir)
.installMD5sums(pkgDir, outDir = pkgDir)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{pkg}] the name of an installed package
\item[\code{dir, pkgDir}] the path to the top-level directory of an installed
package.
\item[\code{outDir}] the directory within which to create the \code{MD5} file.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The file \file{MD5} which is created is in a format which can be
checked by \code{md5sum -c MD5} if a suitable command-line version of
\code{md5sum} is available.

If \code{dir} is missing, an installed package of name \code{pkg} is
searched for.
\end{Details}
\begin{Value}
\code{checkMD5sums} returns a logical, \code{NA} if there is no
\code{MD5} file to be checked.
\end{Value}
\begin{SeeAlso}\relax
\code{\Link{md5sum}}
\end{SeeAlso}

