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. Here are some examples of available color schemes from a 256 color terminal:

If ANSI support is not detected, output will be colored with HTML/CSS and sent to the IDE viewport if available or to your browser otherwise.

Installation

Currently this package is only available on Github:

devtools::install_github("brodieG/diffobj")
vignette("diffobj", package="diffobj")

Branch Status

Copy Link

Version

Install

install.packages('diffobj')

Monthly Downloads

365,914

Version

0.1.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Brodie Gaslam

Last Published

August 29th, 2016

Functions in diffobj (0.1.3)

diff_myers_mba

Diff two character vectors
console_lines

Attempt to Compute Console Height in Text Lines
diffChr

Diff Character Vectors Element By Element
as.character,MyersMbaSes-method

Generate a character representation of Shortest Edit Sequence
any,Diff-method

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

Generate Character Representation of DiffSummary Object
diffCsv

Diff CSV Files
diffDeparse

Diff Deparsed Objects
diffFile

Diff Files
auto_context

Configure Automatic Context Calculation
[<-,PaletteOfStyles-method

Extract/Replace a Style Class or Object from PaletteOfStyles
diffobj_s4method_doc

Dummy Doc File for S4 Methods with Existing Generics
diffobj_set_def_opts

Set All diffobj Options to Defaults
[,Diff,numeric,missing,missing-method

Subsetting Methods for Diff Objects
diffobj-package

Diffs for R Objects
dimnames,PaletteOfStyles-method

Retrieve Dimnames for PaletteOfStyles Objects
finalizeHtml

Finalizing Methods for HTML Output
diffObj

Diff Objects
diffPrint

Diff printed Objects
diffStr

Diff Object Structures
nchar_html

Count Text Characters in HTML
pager_is_less

Check Whether System Has less as Pager
Pager

Objects for Specifying Pager Settings
guides

Generic Methods to Implement Flexible Guide Line Computations
gdo

Shorthand Function for Accessing diffobj Options
make_blocking

Create a Blocking Version of a Function
par_frame

Get Parent Frame of S4 Call Stack
PaletteOfStyles-class

Class for Tracking Default Styles by Style Type
has_Rdiff

Attempt to Detect Whether diff Utility is Available
Rdiff_chr

Run Rdiff Directly on R Objects
show,Style-method

Show Method for Style Objects
ses

Shortest Edit Script
summary,MyersMbaSes-method

Summary Method for Shortest Edit Path
StyleText-class

Character Tokens Used in Diffs
StyleFuns-class

Functions Used for Styling Diff Components
Style-class

Customize Appearance of Diff
summary,Diff-method

Summary Method for Diff Objects
summary,PaletteOfStyles-method

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

Display DiffSummary Objects
show,PaletteOfStyles-method

Display a PaletteOfStyles
tag_f

Make Functions That Wrap Text in HTML Tags
trim

Methods to Remove Unsemantic Text Prior to Diff
view_or_browse

Invoke IDE Viewer If Available, browseURL If Not
webfiles

Return Location of Default HTML Support Files