Learn R Programming

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

diffobj - Compare R Objects with a Diff

Colorized diffs to quickly identify and understand differences between R objects.

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 your browser.

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

352,535

Version

0.1.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Brodie Gaslam

Last Published

April 21st, 2025

Functions in diffobj (0.1.2)

diff_myers_mba

Diff two character vectors
diffChr

Diff Character Vectors Element By Element
diffDeparse

Diff Deparsed Objects
as.character,MyersMbaSes-method

Generate a character representation of Shortest Edit Sequence
diffCsv

Diff CSV Files
any,Diff-method

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

Generate Character Representation of DiffSummary Object
diffFile

Diff Files
console_lines

Attempt to Compute Console Height in Text Lines
auto_context

Configure Automatic Context Calculation
diffobj_set_def_opts

Set All diffobj Options to Defaults
diffobj_css

Return Location of Default CSS File
dimnames,PaletteOfStyles-method

Retrieve Dimnames for PaletteOfStyles Objects
diffStr

Diff Object Structures
diffobj_s4method_doc

Dummy Doc File for S4 Methods with Existing Generics
[,Diff,numeric,missing,missing-method

Subsetting Methods for Diff Objects
diffObj

Diff Objects
[<-,PaletteOfStyles-method

Extract/Replace a Style Class or Object from PaletteOfStyles
diffPrint

Diff printed Objects
diffobj-package

Compare R Objects with a Diff
Pager

Objects for Specifying Pager Settings
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
make_blocking

Create a Blocking Version of a Function
guides

Generic Methods to Implement Flexible Guide Line Computations
pager_is_less

Check Whether System Has less as Pager
par_frame

Get Parent Frame of S4 Call Stack
ses

Shortest Edit Script
gdo

Shorthand Function for Accessing diffobj Options
show,Style-method

Show Method for Style Objects
StyleFuns-class

Functions Used for Styling Diff Components
summary,MyersMbaSes-method

Summary Method for Shortest Edit Path
show,PaletteOfStyles-method

Display a PaletteOfStyles
summary,PaletteOfStyles-method

Display a Summarized Version of a PaletteOfStyles
StyleText-class

Character Tokens Used in Diffs
show,DiffSummary-method

Display DiffSummary Objects
tag_f

Make Functions That Wrap Text in HTML Tags
Style-class

Customize Appearance of Diff
summary,Diff-method

Summary Method for Diff Objects
trim

Methods to Remove Unsemantic Text Prior to Diff