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

- returns the integer 0 if no differences are found between the files (aside from the banner lines and whitespace).
- returns the integer 1 if differences are found between the files.
- returns a value of 127 or gives a warning if the the operating system command diff cannot be found.

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.5-18
Package Index