Skip to contents

One complete, working example ships in examples/demo-deck/: a real project you can cd into and build yourself. It’s built from base R’s built-in Theoph dataset, so no external data is needed, and it ships a pre-generated OUTPUTS/ (the same figure/metadata sidecar quartifyr’s examples/demo-report produces from that dataset), so it builds immediately after a clone.

demo-deck: a five-slide PK deck

A small PK-style deck built entirely from design.yaml/layouts.yaml/ presentation.yaml – no manual slide editing. It exercises a real {rpfy}:conc-time.png reportifyr reference (resolved by deckifyr.resolvers.ReportifyrResolver against OUTPUTS/ and its metadata sidecar, with a footer built from standard_footnotes.yaml), two real type: quarto fragments (spec section 8.1) – a display-math equation rendered to a picture, and a real R code chunk executed to produce editable native text – a table element resolved from a CSV into a native, fully-editable PowerPoint table with its own table_styles chrome, a two-zone plot-with-note layout reused by both the reportifyr and the quarto slide, speaker notes, and z_index/rotation on a freeform closing slide. design.yaml also exercises a background_gradient (a sequential-blue linear gradient painted as the slide’s own native fill), a faint brand-tinted logo composed over it via background_image, and a diagonal, translucent, centered “DEMO” watermark: furniture.status.watermark, one of several named placements design.yaml may configure (corner_tr/corner_tl/ corner_bl/corner_br are the simpler, corner-pinned alternatives), angled via rotation and, via a high z_index, painted on top of every ordinary element instead of behind it – the conventional watermark placement, kept legible by its own text_styles entry’s opacity. presentation.yaml’s own status_indicator: watermark picks that placement, and its text comes from metadata.status: demo (no separate watermark: field set) uppercased by that same text_styles entry’s text_transform: uppercase – for this specific build only, not baked into design.yaml as always-on.

Building it requires the external quarto binary (and, for the R code chunk, Rscript) on PATH – see examples/demo-deck/README.md’s own note. inst/examples/minimal-deck/ (below) has no such requirement.

uv run deckifyr build examples/demo-deck/presentation.yaml
# -> examples/demo-deck/build/demo-deck.pptx, demo-deck.manifest.json
deck_build("examples/demo-deck/presentation.yaml")

Rendered output from a real build/demo-deck.pptx:

demo-deck title slide, showing a markdown heading and italic subtitle over a sequential-blue background_gradient, a faint background_image logo bottom-right, and a translucent diagonal DEMO watermark painted on top of the slide's content

Title (gradient + watermarks)

demo-deck concentration-time slide, showing a two-zone plot-with-note layout: a reportifyr-resolved figure on the left with a source footer, an interpretive note on the right

Concentration-time profile (reportifyr figure)

demo-deck elimination half-life slide, showing a two-zone plot-with-note layout: a quarto-rendered equation image on the left, native editable text from a real executed R code chunk on the right

Elimination half-life (quarto equation + R code chunk)

demo-deck per-participant PK summary slide, showing a native PowerPoint table with a blue header band and alternating row tint from a table_styles entry

Per-participant PK summary (native table)

demo-deck reportifyr table formats slide, showing a {rpfy}:-sourced native PowerPoint table on the left and a {rpfy}:-sourced .rds flextable rendered to a picture on the right, each with its own footer

Reportifyr table formats (native table vs. rendered flextable)

demo-deck closing slide, showing freeform text and a rotated logo image over the same background gradient and watermarks

Closing (freeform, rotated logo)

status_indicator (spec section 7.8) isn’t limited to the full diagonal watermark placement above – design.yaml also configures corner_br/corner_tr (simpler, upright, corner-pinned alternatives; corner_tl/corner_bl are the same idea, just not configured in this particular demo), styled independently from watermark’s own diagonal look. This deck’s own presentation.yaml doesn’t select one – the render below swaps status_indicator: watermark for corner-tr in an otherwise-identical copy of the project (see examples/demo-deck/README.md for the exact reproduction steps), just to show the alternative placement actually composed:

demo-deck title slide with status_indicator: corner-tr selected instead of watermark, showing a small, upright "demo" label in the top-right corner

Title, with status_indicator: corner-tr instead of watermark (not part of this deck’s own tracked build)

Download the real built file: demo-deck.pptx.

See examples/demo-deck/README.md for exactly where the figure and table data come from, and which design.yaml/layouts.yaml fields each slide exercises.

Starting your own project

deckifyr init scaffolds the smaller, three-file inst/examples/minimal-deck/ trio instead of demo-deck – a minimal valid project to build on, not a demo of every feature:

uv run deckifyr init my-deck
uv run deckifyr validate my-deck/presentation.yaml
uv run deckifyr build my-deck/presentation.yaml
initialize_deck_project("my-deck")
deck_validate("my-deck/presentation.yaml")
deck_build("my-deck/presentation.yaml")