Two browser-based {gtsummary} demos (webR + shinylive)

Hi all,

I wanted to share a couple of free, browser-based demos I put together for teaching the clinical "Table 1" (baseline-characteristics table) with {gtsummary}. Everything runs client-side via WebAssembly — nothing is installed and nothing is uploaded — using the trial dataset that ships with gtsummary.

There are two flavours:

  1. An editable-code demo built with quarto-live (webR). You edit the R and press Run — e.g. change by = trt to by = grade, add add_p(), switch continuous summaries to mean (SD) — and the gtsummary table (piped through as_gt()) re-renders in place.
    gtsummary live demo — edit and run in your browser – Rverse Analytics

  2. A no-code Shiny app (shinylive) where you pick the grouping variable and which characteristics to include, and the table rebuilds.
    Live Demos – Rverse Analytics

There's also a short step-by-step write-up that builds the table one verb at a time (tbl_summary → by → add_p → add_overall → polish), aimed at people meeting gtsummary for the first time:
gtsummary for beginners: build a Table 1 from clinical data, step by step – Rverse Analytics

Full credit to the tooling that makes this possible — quarto-live / webR and shinylive did all the heavy lifting; I mostly wired gtsummary into them. It's been surprisingly nice for teaching, since learners can try each verb without a local R install.