R package for creating code differences in JavaScript based on codediff.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
img
inst/htmlwidgets
man
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
NAMESPACE
README.md
diffr.Rproj

README.md

Travis-CI Build Status

R package for creating code differences in JavaScript based on:

https://github.com/danvk/codediff.js

library(diffr)
file1 = tempfile()
writeLines("hello, world!\n", con = file1)
file2 = tempfile()
writeLines(paste0(
"hello world?\nI don't get it\n",
paste0(sample(letters, 65, replace = TRUE), collapse = "")), con = file2)
diffr(file1, file2, before = "f1", after = "f2")