The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

latexdiffr

CRAN status R-CMD-check Coverage status

latexdiffr is a small library that uses the latexdiff command to create a diff of two Rmarkdown, .Rnw or TeX files.

Installation

remotes::install_github("hughjonesd/latexdiffr")

You will also need latexdiff installed on your system:

# on MacOS:
brew install latexdiff

# on Linux:
sudo apt install latexdiff 

# with tinytex
Rscript -e "tinytex::tlmgr_install('latexdiff')"

Example

library(latexdiffr)
# tinytex::tlmgr_path("add")
latexdiff("file1.Rmd", "file2.Rmd")

This produces output like:

latexdiff screenshot
latexdiff screenshot

git_latexdiff() allows you to compare different revisions of a file in git:

# 3 revisions ago:
git_latexdiff("my-file.Rmd", "HEAD~3") 

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.