For each analysis, writes an RTF table (r2rtf), a CDISC Dataset-JSON ARD (datasetjson, with a flat-JSON fallback), an HTML table (rtables), and a PNG figure where available. Also writes a per-run index.html and a traceability bundle.

build_outputs(
  x,
  outdir = "ardflow_outputs",
  data = NULL,
  formats = c("rtf", "json", "html", "png")
)

Arguments

x

An ardflow_render object, or an ardflow_spec (which is computed and rendered first).

outdir

Output directory (created if needed).

data

Optional named list of datasets, passed to compute_ard().

formats

Which outputs to write; subset of c("rtf","json","html","png").

Value

A manifest data.frame of written files (invisibly).