Diffs for R Objects

Generate a colorized diff of two R objects for an intuitive visualization of their differences.


diffobj - Diffs for R Objects

R buildstatus

Generate a colorized diff of two R objects for an intuitive visualization of their differences.

See the introductory vignette for details.

Output

If your terminal supports formatting through ANSI escape sequences, diffobj will output colored diffs to the terminal. Otherwise, output will be colored with HTML/CSS and sent to the IDE viewport or to your browser. diffobj comes with several built-in color schemes that can be further customized. Some examples:

Output Examples

Installation

This package is available on CRAN.

install.packages("diffobj")
browseVignettes("diffobj")

Related Software

  • tools::Rdiff.
  • Daff diff, patch and merge for data.frames.
  • GNU diff.
  • waldo, which internally uses diffobj for diffs but takes a more hands-on approach to detailing object differences.

Acknowledgements

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("diffobj")

0.3.9 by Brodie Gaslam, a month ago


https://github.com/brodieG/diffobj


Report a bug at https://github.com/brodieG/diffobj/issues


Browse source code at https://github.com/cran/diffobj


Authors: Brodie Gaslam [aut, cre] , Michael B. Allen [ctb, cph] (Original C implementation of Myers Diff Algorithm)


Documentation:   PDF Manual  


GPL-2 | GPL-3 license


Imports crayon, tools, methods, utils, stats

Suggests knitr, rmarkdown


Imported by R.AlphA.Home, baizer, chronicler, orderly, provExplainR, tinysnapshot, ttdo, unitizer, vdiffr, verifyr2, waldo.

Suggested by DeclareDesign, LexisNexisTools, Require, TopDom, brms, metabodecon, metabodeconplus, seekr, shinytest2, sparklyr, webmockr.


See at CRAN