Remove Tables, Figures, and Footnotes
The remove_tables_figures_footnotes()
function in the reportifyr
package parses a Microsoft Word document (.docx
file) for predefined magic strings, and deletes corresponding tables, figures, and footnotes.
remove_tables_figures_footnotes()
Returns
- Updated Document: A new
.docx
file with tables, figures, and footnotes deleted from the appropriate positions.
Logging
- Debug: Logs the start and end of the function and the start and end of each
processx::run()
. - Info: Logs
venv_path
validation andstdout
,stderr
andstatus
on succcessful execution of eachprocessx::run()
. - Error: Logs errors for missing
docx_in
, missing virtual environment (venv_path
), and any errors returned fromprocessx::run()
.
Additional Resources
- reportifyr GitHub: Refer to the
reportifyr
repository for more details. - processx Reference Manual: Refer to the
processx
reference manual for specific inquiries related toprocessx
. - Initialize Report Project Reference: Refer to the reference on
initialize_report_project()
here. - Make Doc Dirs Reference: Refer to the reference on
make_doc_dirs()
here. - Write Object Metadata Reference: Refer to the reference on
write_object_metadata()
here.