Generates a Word document with an overview of key NCD risk factor prevalence, including summary table and sex-stratified charts.

render_fact_sheet(config, output_dir = tempdir(), format = c("html", "word"))

Arguments

config

A list from steps_config() with survey metadata and paths. Expected to have country_name, survey_year, age_min, age_max.

output_dir

Directory for output reports (default tempdir()).

format

Output format: "html" for self-contained HTML (default) or "word" for Word (.docx).

Value

Path to generated output file (invisibly). Prints message with output location.

Details

The fact sheet template uses pre-computed indicators, key_indicators, and plots (via .rds files in data/processed/). Requires rmarkdown, flextable, ggplot2, glue, patchwork packages.