Rdiff
Compare Printed Output From TERR and R

Description

Compares printed output from TERR or R sessions, ignoring trivial differences.

Usage

Rdiff(from, to, useDiff = FALSE, forEx = FALSE, nullPointers = TRUE,
Log = FALSE)

TERR CMD Rdiff from_file to_file

Arguments

from A text file containing the printed output from a TERR or R session.
to Another text file containing the printed output from a TERR or R session.
useDiff This argument is ignored.
forEx This argument is ignored.
nullPointers This argument is ignored.
Log This argument is ignored.

Details

Rdiff strips the initial banner lines (copyright and so on) from the files and calls the operating system command diff -bw. This command prints the differences, but it does not return the text as a character vector.
Value
Note
Some R packages have files with the extension ".Rout.save" containing printed output from running the corresponding ".R" file. Using Rdiff to compare the saved output file with one from a current version of R or TERR can be useful.
Rdiff uses the operating system command diff to make the comparison. It might not be present on Windows, unless you have installed Rtools or Cygwin.
Package tools version 6.1.4-13
Package Index