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.
You can install the released version of diffviewer from CRAN with:
This is a basic example which shows you how to solve a common problem: