Rdiff                 package:tools                 R Documentation

_D_i_f_f_e_r_e_n_c_e _R _O_u_t_p_u_t _F_i_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Given two R output files, compute differences ignoring headers,
     footers and some encoding differences.

_U_s_a_g_e:

     Rdiff(from, to, useDiff = FALSE)

_A_r_g_u_m_e_n_t_s:

from, to: filepaths to be compared

 useDiff: should 'diff' always be used to compare results?

_D_e_t_a_i_l_s:

     The R startup banner and any timing information from 'R CMD BATCH'
     are removed from both files, together with lines about loading
     packages.  UTF-8 fancy quotes (see 'sQuote' and on Windows,
     Windows so-called '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 'useDiff' is false, a simple 'diff'-like
     display of differences is printed, otherwise 'diff -bw' is called
     on the edited files.

_V_a_l_u_e:

     '0L' if no differences were found, otherwise '1L'

_S_e_e _A_l_s_o:

     The shell script run as 'R CMD Rdiff'.

