Skip to contents

Two complete, working examples ship in examples/, each a real project you can cd into and render yourself. Both are built from base R’s built-in datasets, so no external data is needed, and both ship pre-generated OUTPUTS/ so they work immediately after a clone even before you’ve set up the full toolchain.

demo-report: the full pipeline

A small PK-style report built from Theoph, exercising every piece of the toolkit: dynamic title page, draft/final status stamp, contributor/approver signature pages, table of contents (including the title page), list of figures, list of tables, only-used abbreviations, a citeproc-driven bibliography, two numbered appendices, and a real reportifyr fill pass. The second appendix embeds the analysis script itself with real syntax highlighting via Quarto’s own native {{< include >}} shortcode nested in a fenced code block – not a quartifyr feature, just plain Quarto – so it’s demonstrated here rather than documented as toolkit behavior.

Quick look (Quarto only, no R/Python): renders the shell with {rpfy}: placeholders left literal:

cd examples/demo-report
quarto render report.qmd --to docx --reference-doc ../../inst/templates/org-reference.docx \
  -M document-status:DRAFT

Full pipeline: real tables/figures/footnotes filled in:

cd examples/demo-report
Rscript -e 'reportifyr::initialize_report_project(project_dir = getwd())'   # first clone only
Rscript -e 'quartifyr::initialize_quartifyr_project(getwd())'              # first clone only
Rscript render.R --final
# -> report/draft/report-draft.docx, report/final/report-final.docx

Rendered output from a real report/final/report-final.docx:

demo-report title page, showing dynamic title, draft/final status stamp, and info table

Title page

demo-report synopsis page, showing synopsis-style: inline -- Title/Objectives/Methods/Results labels running into their first value line, with an inline embedded figure in the Results row

Synopsis

demo-report combined List of Figures page, listing the continuous Figure 1 alongside main-body section-/subsection-scoped figures (plain 'Figure 1.1'/'Figure 1.1.1') and appendix-scoped ones (nested under that appendix's own designator, 'Figure C.1'/'Figure C.1.1'/'Figure C.1.1.1'), each with a live page number, in true document order

Combined List of Figures

demo-report combined List of Tables page, listing the continuous Table 1/Table 2 alongside the appendix-scoped table ('Table C.1'), each with a live page number, in true document order

Combined List of Tables

demo-report body page showing the filled per-participant PK summary table with a live caption, source footnote, and abbreviations line

Filled body (PK summary table)

demo-report numbered appendix page, Appendix A, generated via a Word SEQ field

Numbered appendix

demo-report second appendix, Appendix B, showing the analysis script embedded and syntax-highlighted via Quarto's native include shortcode

Analysis code appendix

The synopsis above uses synopsis-style: inline; see Quarto extension for a side-by-side comparison of all four layout options.

The two combined-list pages above are .quartifyr_list_of_figures/ .quartifyr_list_of_tables (caption_lists.lua) – note that the main-body and appendix-scoped entries interleave with the continuous Figure 1/Table 1/Table 2 by true document position, not grouped separately by numbering family, and that the appendix-scoped entries carry that appendix’s own designator throughout (“Figure C.1.1”, not plain “Figure 1.1”), distinguishing them from the plain main-body ones above them. See Quarto extension for how this differs from fig_caption/tbl_caption’s own .list_of_figures/.list_of_tables (which only ever show the continuous entries, and stay unchanged by this addition).

Download the real rendered file: demo-report-final.docx.

Verify it worked with the bundled smoke test, which asserts on the actual rendered content (no leftover {rpfy}: strings, tables/figures really filled in, bibliography populated before the appendices, …):

python3 examples/demo-report/smoke_test.py

memo-example: the minimal end

The same pipeline’s other extreme: a fax-cover-sheet-style memo cover page (logo, left-aligned MEMORANDUM banner, To/From/Date/Re/Cc grid) instead of a formal title page, and no ToC/list of figures/list of tables/abbreviations/signature pages, a loose, short-form document. The body still exercises a real reportifyr fill pass: one figure (a milestone timeline) with a live caption and hyperlinked crossref.

cd examples/memo-example
quarto render report.qmd --to docx --reference-doc ../../inst/templates/org-reference.docx \
  -M document-status:DRAFT   # quick look, quarto only

# full pipeline
Rscript -e 'reportifyr::initialize_report_project(project_dir = getwd())'   # first clone only
Rscript -e 'quartifyr::initialize_quartifyr_project(getwd())'              # first clone only
Rscript render.R --final
memo-example cover page, showing a left-aligned MEMORANDUM banner and To/From/Date/Re/Cc grid, no table of contents

Memo cover

memo-example body page showing the filled budget-timeline figure with a live caption and hyperlinked crossref

Filled body (figure)

Download the real rendered file: memo-example-final.docx.

python3 examples/memo-example/smoke_test.py

None of the omitted sections (ToC, signature pages, …) needed any quartifyr code changes; see Quarto extension for how each front-matter piece is opt-in via frontmatter alone.