
Launch Interactive "Which Daily Habit Has a Bigger Effect?" Quiz
Source:R/quiz.R
launch_chronic_quiz.RdA standalone Shiny app where users compare pairs of chronic lifestyle factors and guess which has the larger absolute effect on life expectancy (microlives per day). Built with bslib cards for a modern UI.
Arguments
- n_pairs
Number of question pairs. If
NULL(default), the user chooses on the instructions page.- ...
Additional arguments passed to
shiny::shinyApp().
Examples
if (interactive()) {
launch_chronic_quiz()
}