Description Usage Arguments Value See Also Examples
Currently supports:
image diffs for .svg
and .png
tabular diffs for .csv
text diffs for everything else
1 | visual_diff(file_old, file_new, width = NULL, height = NULL)
|
file_old, file_new |
Paths to files to compare |
width, height |
Output size |
A HTML widget
visual_diff_output()
for use within Shiny apps
1 2 3 4 5 6 7 8 | path1 <- tempfile()
path2 <- tempfile()
writeLines(letters, path1)
writeLines(letters[-13], path2)
if (interactive()) {
visual_diff(path1, path2)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.