Open njtierney opened 6 years ago
Sounds great. Tell me if I can help! latexdiffr is just a quick hack, it could use some polish.
Perhaps backyard
package 📦 could be of some help here, at least when working with bookdown
? đź“–
The diffobj package may also be relevant.
Hi @hughjonesd - thanks! You have laid the foundation down very well for latexdiffr
! I tried out using latexdiffr::git_latexdiff()
and couldn't quite get it to compile, but I think that was partly to do with LaTeX installation issues with tlmgr
.
Here are some of my thoughts on improving the process of diffing.
usethis
style console questions that confirm the files you want to check out, from which dates and timesWe might import/borrow some of the parts for generating diffs with LaTeX from latexdiffr
- would that be OK?
That’s fine by me.
Moving a Rmd document and hoping to capture and move its dependencies is going to be hard; that can include arbitrary files, read in arbitrary ways.
Limiting to the git version case might be more manageable: you can checkout the whole repository at the old version, into some separate location. (Not what latexdiffr does now, but possible.)
Is anybody working on this? I would love a unified way to track changes in Rmarkdown with different output options (mostly HTML and LaTeX). A unified approach to commenting on text would be great as well for collaborative writing.
I'd like to make it as easy as possible to track changes from one rmarkdown document as possible, whether it be in HTML, PDF, or even Word (although this might be complex).
I wrote a tweet about this here and had some really great responses from people.
There were two packages that stood out,
So I was thinking that we could try and flesh out example use of these packages, perhaps creating a vignette, a separate package, if we think that will mean we can do more, and perhaps incorporate some of the nice links people linked:
make
magic with latexdiff