git_latexdiff: Call latexdiff on git revisions

Description Usage Arguments Details Value Examples

Description

git_latexdiff() checks out a previous version of a file and calls latexdiff on it.

Usage

1
git_latexdiff(path, revision, clean = TRUE, ...)

Arguments

path

File path to diff

revision

Revision, specified in a form that git understands. See man gitrevisions

clean

Clean up intermediate files, including the checked out file?

...

Arguments passed to latexdiff()

Details

git_latexdiff only checks out the specific file in path. If your Rmd file depends on external resources which have also changed, you will need to checkout the old revision as a whole and create the tex file manually.

Value

The result of latexdiff.

Examples

1
2
3
4
5
## Not run: 
git_latexdiff("file1.Rmd", "HEAD^")
git_latexdiff("file1.Rmd", "master@{7 days ago}")

## End(Not run)

latexdiffr documentation built on May 3, 2021, 9:07 a.m.