clicker_question: Create a clicker question.

View source: R/question_clicker.R

clicker_questionR Documentation

Create a clicker question.

Description

By default, clicker questions are only rendered if the option stat305templates.render_clicker_questions is TRUE or if it is a function which returns TRUE.

Usage

clicker_question(
  title,
  ...,
  body = NULL,
  in_class_only = FALSE,
  container_class = NULL,
  force_render = FALSE,
  btn_text = "Show Clicker Question"
)

Arguments

title

question title.

...

5 answer options. They will be numbered 'A'-'E'.

body

optional question body.

in_class_only

if the question should only be shown 'in-class' or also when printing out the slides.

container_class

additional HTML classes to add to the container.

force_render

should the question always be rendered?

btn_text

text for the "show" button.


dakep/stat305templates documentation built on Nov. 27, 2022, 8:23 a.m.