# NOT RUN {
if (require("shiny") && interactive()) {
ui <- fluidPage(
visual_diff_output("diff")
)
server <- function(input, output, session) {
path1 <- tempfile()
path2 <- tempfile()
writeLines(letters, path1)
writeLines(letters[-13], path2)
output$diff <- visual_diff_render(visual_diff(path1, path2))
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab