These functions act on the RStudio text editor and can be used via the Addins menu or the R console. rountrip_active_file() ("Render and Update") knits the current file using redoc() replaces the text with text that has been round-tripped to Word and back. This helps eliminate small formatting differences.

The dedoc_* functions de-render Word documents (using dedoc()), and place the results in the current or new file. By default, they will also display a diff (generated via redoc_diff()) of edits in the word file compared to its original version a compilation time. If called without an input file, they will prompt for file selection via the RStudio GUI.

roundtrip_active_file()

dedoc_to_active_file(docx = NULL, showdiff = TRUE)

dedoc_to_new_file(docx = NULL, showdiff = TRUE)

Arguments

docx

The input Word file, originally generated by redoc()

showdiff

Display a diff of the current version of the document against the rendered version?