Learn R Programming

⚠️There's a newer version (0.3.6) of this package.Take me there.

diffobj - Diffs for R Objects

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

See 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:

Installation

This package is available on CRAN.

install.packages("diffobj")
vignette("diffobj", package="diffobj")

Go to Github to report issues or if you are interested in development versions of this package.

Copy Link

Version

Install

install.packages('diffobj')

Monthly Downloads

461,287

Version

0.1.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Brodie Gaslam

Last Published

September 1st, 2016

Functions in diffobj (0.1.4)

diff_myers

Diff two character vectors
diffChr

Diff Character Vectors Element By Element
diffFile

Diff Files
auto_context

Configure Automatic Context Calculation
any,Diff-method

Determine if Diff Object Has Differences
as.character,MyersMbaSes-method

Generate a character representation of Shortest Edit Sequence
console_lines

Attempt to Compute Console Height in Text Lines
diffCsv

Diff CSV Files
as.character,DiffSummary-method

Generate Character Representation of DiffSummary Object
diffDeparse

Diff Deparsed Objects
diffobj-package

Diffs for R Objects
diffobj_set_def_opts

Set All diffobj Options to Defaults
diffobj_s4method_doc

Dummy Doc File for S4 Methods with Existing Generics
finalizeHtml

Finalizing Methods for HTML Output
[,Diff,numeric,missing,missing-method

Subsetting Methods for Diff Objects
[<-,PaletteOfStyles-method

Extract/Replace a Style Class or Object from PaletteOfStyles
dimnames,PaletteOfStyles-method

Retrieve Dimnames for PaletteOfStyles Objects
diffObj

Diff Objects
diffPrint

Diff printed Objects
diffStr

Diff Object Structures
nchar_html

Count Text Characters in HTML
gdo

Shorthand Function for Accessing diffobj Options
par_frame

Get Parent Frame of S4 Call Stack
Pager

Objects for Specifying Pager Settings
has_Rdiff

Attempt to Detect Whether diff Utility is Available
pager_is_less

Check Whether System Has less as Pager
guides

Generic Methods to Implement Flexible Guide Line Computations
Rdiff_chr

Run Rdiff Directly on R Objects
PaletteOfStyles-class

Class for Tracking Default Styles by Style Type
make_blocking

Create a Blocking Version of a Function
StyleText-class

Character Tokens Used in Diffs
show,Style-method

Show Method for Style Objects
ses

Shortest Edit Script
summary,Diff-method

Summary Method for Diff Objects
summary,MyersMbaSes-method

Summary Method for Shortest Edit Path
summary,PaletteOfStyles-method

Display a Summarized Version of a PaletteOfStyles
show,PaletteOfStyles-method

Display a PaletteOfStyles
StyleFuns-class

Functions Used for Styling Diff Components
show,DiffSummary-method

Display DiffSummary Objects
Style-class

Customize Appearance of Diff
view_or_browse

Invoke IDE Viewer If Available, browseURL If Not
trim

Methods to Remove Unsemantic Text Prior to Diff
webfiles

Return Location of Default HTML Support Files
tag_f

Make Functions That Wrap Text in HTML Tags