Comparing files

For comparing Rmd files, you might be interested in latexdiffr:

Or

remotes::install_github("hughjonesd/latexdiffr")

I think there was a plan afoot to do something more advanced - this is just a quick wrapper around the latexdiff utility.