redoc_extract_rmd: Extract the Rmd used to to produce a Reversible Word Doc
Description
Documents produced with redoc() store an copy of the original
.Rmd files used to produce them. This is useful for diffing against the
version created with dedoc(), especially if tracked changes have not been
used.
Usage
redoc_extract_rmd(docx, type = c("original", "roundtrip"), dir = ".",
to = NULL, overwrite = FALSE)
One of "original" or "roundtrip". "original" extracts the
exact document originally knit. "roundtrip" (default) extracts a document
that has been converted to Word and back with no edits in between. The
latter should be more useful for comparing against edits, as line-wrapping
and placement of no-output chunks should match.
dir
The directory to write the `.Rmd`` to. Defaults to current working
directory
to
the filename to write the resulting .Rmd file. The default is to
use the the original name with either .orignal.Rmd or roundtrip.Rmd
extensions.