|Noam Ross 3393313fe2 Update redoc() documentation||il y a 11 mois|
|.github||il y a 1 an|
|R||il y a 11 mois|
|inst||il y a 1 an|
|man||il y a 11 mois|
|pkgdown||il y a 1 an|
|tests||il y a 1 an|
|vignettes||il y a 1 an|
|.Rbuildignore||il y a 1 an|
|.gitignore||il y a 1 an|
|.travis.yml||il y a 1 an|
|DESCRIPTION||il y a 1 an|
|LICENSE||il y a 1 an|
|NAMESPACE||il y a 1 an|
|NEWS.md||il y a 1 an|
|README.Rmd||il y a 1 an|
|README.md||il y a 1 an|
|appveyor.yml||il y a 1 an|
|codecov.yml||il y a 1 an|
|redoc.Rproj||il y a 1 an|
redoc is a package to enable a two-way R Markdown-Microsoft Word workflow. It generates Word documents that can be de-rendered back into R Markdown, retaining edits on the Word document, including tracked changes.
redoc is not yet stable; its core engine and API are still subject to change. It’s been overhauled a few times already! I welcome your contributions and feedback.
Install the redoc package with the remotes (or devtools) package:
Note that redoc requires a recent version of Pandoc (>= 2.1.2). If you have RStudio version 1.2 or higher, you should have this by default.
redoc provides an R Markdown output
redoc(), built on top of
rmarkdown::word_document(). You will
typically call it via the YAML header in your R Markdown document. You
have the option of highlighting the outputs (both chunk and inline) in
the Word Document.
--- output: redoc::redoc ---
redoc() output resembles typical R Markdown Word output, but has some
highlight_outputs = FALSE)
.Rmdand all code is stored internally in Word document for later retrieval.
Word files that have been created by
redoc() can be reverted to
dedoc() function, even after they are edited.
will return the path of the de-rendered document.
library(redoc) print(basename(redoc_example_docx())) #>  "example.docx" dedoc(redoc_example_docx()) #>  "./example.Rmd"
If the Word document has tracked changes,
dedoc() will, by default,
convert these to back to Critic Markup syntax. However, tracked changes
are not necessary. You can view the changes between the original R
Markdown file and the de-rendered one using the
redoc has three RStudio Addins to simplify workflow when working with R Markdown documents:
redoc_diff()in the RStudio viewer.
The package also contains a
dedoc R Markdown template.
Want have feedback or want to contribute? Great! Please take a look at the contributing guidelines before filing an issue or pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.