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 vignettes for details, and for comparisons with standard comparison functions.

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")

Development

Go to Github to report issues or if you are interested in development versions of this package. The master branch is considered stable. If you want to submit a PR please do so against the development branch.

Related Software

Copy Link

Version

Install

install.packages('diffobj')

Monthly Downloads

365,914

Version

0.1.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Brodie Gaslam

Last Published

November 15th, 2016

Functions in diffobj (0.1.6)

diffCsv

Diff CSV Files
console_lines

Attempt to Compute Console Height in Text Lines
diff_myers

Diff two character vectors
diffStr

Diff Object Structures
dimnames,PaletteOfStyles-method

Retrieve Dimnames for PaletteOfStyles Objects
Style-class

Customize Appearance of Diff
StyleFuns-class

Functions Used for Styling Diff Components
summary,MyersMbaSes-method

Summary Method for Shortest Edit Path
summary,PaletteOfStyles-method

Display a Summarized Version of a PaletteOfStyles
diffDeparse

Diff Deparsed Objects
diffObj

Diff Objects
diffPrint

Diff printed Objects
pager_is_less

Check Whether System Has less as Pager
show,DiffSummary-method

Display DiffSummary Objects
Pager

Objects for Specifying Pager Settings
show,PaletteOfStyles-method

Display a PaletteOfStyles
view_or_browse

Invoke IDE Viewer If Available, browseURL If Not
webfiles

Return Location of Default HTML Support Files
any,Diff-method

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

Generate Character Representation of DiffSummary Object
as.character,MyersMbaSes-method

Generate a character representation of Shortest Edit Sequence
diffobj_set_def_opts

Set All diffobj Options to Defaults
auto_context

Configure Automatic Context Calculation
diffobj-package

Diffs for R Objects
StyleText-class

Character Tokens Used in Diffs
summary,Diff-method

Summary Method for Diff Objects
[<-,PaletteOfStyles-method

Extract/Replace a Style Class or Object from PaletteOfStyles
[,Diff,numeric,missing,missing-method

Subsetting Methods for Diff Objects
finalizeHtml

Finalizing Methods for HTML Output
gdo

Shorthand Function for Accessing diffobj Options
show,Style-method

Show Method for Style Objects
strip_hz_control

Replace Horizontal Spacing Control Characters
guides

Generic Methods to Implement Flexible Guide Line Computations
Diff-class

Diff Result Object
ses

Shortest Edit Script
Rdiff_chr

Run Rdiff Directly on R Objects
has_Rdiff

Attempt to Detect Whether diff Utility is Available
diffChr

Diff Character Vectors Element By Element
PaletteOfStyles-class

Class for Tracking Default Styles by Style Type
par_frame

Get Parent Frame of S4 Call Stack
tag_f

Make Functions That Wrap Text in HTML Tags
trim

Methods to Remove Unsemantic Text Prior to Diff
nchar_html

Count Text Characters in HTML
make_blocking

Create a Blocking Version of a Function
diffFile

Diff Files
diffobj_s4method_doc

Dummy Doc File for S4 Methods with Existing Generics
AlignThreshold-class

Controls How Lines Within a Diff Hunk Are Aligned
[<-,PaletteOfStyles-method

Extract/Replace a Style Class or Object from PaletteOfStyles
StyleSummary-class

Styling Information for Summaries