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'.