Skip to contents

Renders a one-page clinical report to an editable Word document using officer (with flextable when available) — no LaTeX toolchain required. Called by renderClinicalReport for format = "docx"; usable directly.

Usage

buildDocxReport(
  data,
  template = c("gait", "hrv", "emg"),
  lang = c("en", "ja"),
  out
)

Arguments

data

A report payload list (see renderClinicalReport): subject, figures (a named list of ggplots), change (an optional change_annotation) and provenance (an optional named list).

template

One of "gait", "hrv", "emg" (drives the localized title).

lang

"en" or "ja".

out

Output .docx path.

Value

out, invisibly.