powered by
Currently supports:
image diffs for .svg and .png
.svg
.png
tabular diffs for .csv
.csv
text diffs for everything else
visual_diff(file_old, file_new, width = NULL, height = NULL)
Paths to files to compare
Output size
A HTML widget
visual_diff_output() for use within Shiny apps
visual_diff_output()
# NOT RUN { path1 <- tempfile() path2 <- tempfile() writeLines(letters, path1) writeLines(letters[-13], path2) if (interactive()) { visual_diff(path1, path2) } # }
Run the code above in your browser using DataLab