\HeaderA{Rdiff}{Difference \R{} Output Files}{Rdiff}
\keyword{utilities}{Rdiff}
\begin{Description}\relax
Given two \R{} output files, compute differences ignoring headers,
footers and some encoding differences.
\end{Description}
\begin{Usage}
\begin{verbatim}
Rdiff(from, to, useDiff = FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{from, to}] filepaths to be compared
\item[\code{useDiff}] should \command{diff} always be used to compare results?
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The \R{} startup banner and any timing information from \command{R CMD
BATCH} are removed from both files, together with lines about
loading packages.  UTF-8 fancy quotes (see \code{\LinkA{sQuote}{sQuote}} and on
Windows, Windows so-called \sQuote{smart quotes} are mapped to a
simple quote.  The files are then compared line-by-line.  If there are
the same number of lines and \code{useDiff} is false, a simple
\command{diff}-like display of differences is printed, otherwise
\command{diff -bw} is called on the edited files.
\end{Details}
\begin{Value}
\code{0L} if no differences were found, otherwise \code{1L}
\end{Value}
\begin{SeeAlso}\relax
The shell script run as \command{R CMD Rdiff}.
\end{SeeAlso}

