r-lib / diffviewer

HTML widget to visually compare files

Home Page:http://diffviewer.r-lib.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diffviewer

Codecov test coverage R-CMD-check

diffviewer provides an HTML widget for visually comparing files. It currently wraps three javascript libraries:

It extracts out common UI provided by shinytest and vdiffr.

Installation

You can install the released version of diffviewer from CRAN with:

install.packages("diffviewer")

Example

This is a basic example which shows you how to solve a common problem:

library(diffviewer)
path1 <- tempfile()
writeLines(letters, path1)
path2 <- tempfile()
writeLines(letters[-(10:11)], path2)

visual_diff(path1, path2)

About

HTML widget to visually compare files

http://diffviewer.r-lib.org

License:Other


Languages

Language:JavaScript 95.7%Language:CSS 3.3%Language:R 1.0%