Skip to contents

Reads in a .docx file and returns a new version with tables, figures, and footnotes removed from the document.

Usage

remove_tables_figures_footnotes(docx_in, docx_out)

Arguments

docx_in

Path to the input .docx file

docx_out

Path to output .docx to save to

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
)
} # }