
Export combined quiz pairs to CSV for Shinylive
Source:R/combined_quiz.R
export_combined_quiz_csv.RdGenerates a representative set of combined quiz pairs and writes them to
inst/extdata/combined_quiz_pairs.csv. The Shinylive combined quiz can
read this CSV directly without requiring R computation in the browser.
Arguments
- n
Integer. Number of pairs to export. Default
50.- time_period_days
Numeric. Time period for chronic risk accumulation. Default
365(1 year).- seed
Integer. Random seed for reproducibility. Default
42.- path
Character. Output file path. Default writes to
inst/extdata/combined_quiz_pairs.csvunder the package root.