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.
redoc_extract_rmd(docx, type = c("original", "roundtrip"), dir = ".", to = NULL, overwrite = FALSE)
docx | A path to a word file or a an |
---|---|
type | One of |
dir | The directory to write the `.Rmd`` to. Defaults to current working directory |
to | the filename to write the resulting |
overwrite | whether to overwrite existing files |
The path to the extracted .Rmd
#> [1] "/tmp/RtmpRWp2Yi/example.Rmd"