Jacob Dumbleton: No financial relationships to disclose
Objectives: Generating structured, reproducible, and high-quality reports is a critical yet time-consuming task in data analysis and regulatory submissions. Industry workflows often rely on Microsoft Word for cross-functional collaboration, where review cycles are iterative and require fast turnaround. While R Markdown[1] and LaTeX-based[2] solutions offer automation for reporting and are able to generate Microsoft Word documents, they rely on their own markup standard for input files, limiting the iterative review cycles required in industry. reportifyr is an open-source R package created to streamline the generation of Microsoft Word documents with complex formatting required to align with company style guides, and supports iterative updates of figures and tables (artifacts) as the document goes through review and edit cycles. By providing a community-driven framework, reportifyr enables semi-automated document creation within industry workflows. The objective of this work is to demonstrate the capabilities of reportifyr
Methods: reportifyr automates report assembly using string-based placeholders, or, magic strings, which users manually insert into a Microsoft Word document. These strings, formatted as {rpfy}:artifact_file_name.extension, act as flags that reportifyr uses to add or remove artifacts and their associated footnotes (metadata) during report assembly. Metadata for footnotes are extracted from metadata files generated alongside the artifact, keeping footnotes synchronized as artifacts evolve. This lets users start with a Microsoft Word template that mirrors the final report structure, ensuring full control over formatting while automating artifact updates.
Results: We applied reportifyr (v0.2.6)[3] to various analytical workflows, demonstrating its ability to produce well-structured, reproducible reports with minimal manual intervention. The package successfully integrated statistical outputs, tables, figures, and associated metadata into standardized Microsoft Word documents, preserving formatting while assuring quality across the documents. By focusing on Microsoft Word-based outputs, reportifyr aligns with the needs of teams that require collaborative editing (e.g., live comments and tracked changes) and regulatory review cycles in Microsoft Word without extensive retraining or reliance on additional software.
Conclusions: reportifyr is a fully open-source solution to automate and standardize Microsoft Word document generation with R. By enabling structured reporting without converting content to custom markup standards, it provides a flexible, community-driven alternative to existing solutions[2,4,5]. As part of ongoing development, reportifyr is integrating with Quarto[6], a next-generation document publishing system. This integration introduces a hybrid workflow in which users generate an initial Microsoft Word draft via Quarto, while reportifyr facilitates structured updates throughout the review and revision process. By automating content updates in existing Microsoft Word documents, this approach ensures that reports remain dynamic, editable, and reproducible while maintaining full compatibility with regulatory and collaborative workflows
Citations: [1] https://rmarkdown.rstudio.com/ [2] Rasmussen CH, Smith MK, Ito K, Sundararajan V, Magnusson MO, Niclas Jonsson E, Fostvedt L, Burger P, McFadyen L, Tensfeldt TG, Nicholas T. PharmTeX: a LaTeX-Based Open-Source Platform for Automated Reporting Workflow. AAPS J. 2018 Mar 16;20(3):52. doi: 10.1208/s12248-018-0202-0. PMID: 29549459. [3] https://github.com/A2-ai/reportifyr/tree/v0.2.6 [4] PAGE 32 (2024) Abstr 10798 [www.page-meeting.org/?abstract=10798] [5] PAGE 31 (2023) Abstr 10472 [www.page-meeting.org/?abstract=10472] [6] Allaire, J., Teague, C., Scheidegger, C., Xie, Y., Dervieux, C., & Woodhull, G. (2024). Quarto (Version 1.6) [Computer software]. https://doi.org/10.5281/zenodo.5960048