Removes Tables, Figures, and Footnotes from a Word file
remove_tables_figures_footnotes.Rd
Reads in a .docx file and returns a new version with tables, figures, and footnotes removed from the document.
Examples
if (FALSE) { # \dontrun{
# ---------------------------------------------------------------------------
# Load all dependencies
# ---------------------------------------------------------------------------
docx_in <- file.path(here::here(), "report", "shell", "template.docx")
doc_dirs <- make_doc_dirs(docx_in = docx_in)
# ---------------------------------------------------------------------------
# Removal to set-up docx_in
# ---------------------------------------------------------------------------
remove_tables_figures_footnotes(
docx_in = docx_in,
docx_out = doc_dirs$doc_clean
)
} # }