Display only one question at a time within Quiz

I have a quiz in one of my learnr tutorials that has more questions than can fit onto the screen.

For reference, here is my code for the quiz:

quiz(
  caption = "Identify the variable type for each columns in `video_games`:",
  question("What type of variable is `game_title`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal", correct = TRUE),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `max_players`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete", correct = TRUE),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `genre`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal", correct = TRUE),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `publisher`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal", correct = TRUE),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `review_score`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete", correct = TRUE),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `sales`?",
    answer("Numerical: Continuous", correct = TRUE),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `used_price`?",
    answer("Numerical: Continuous", correct = TRUE),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `console`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal", correct = TRUE),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  ),
  question("What type of variable is `rating`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete"),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal", correct = TRUE),
    allow_retry = TRUE
  ),
  question("What type of variable is `release_year`?",
    answer("Numerical: Continuous"),
    answer("Numerical: Discrete", correct = TRUE),
    answer("Categorical: Nominal"),
    answer("Categorical: Ordinal"),
    allow_retry = TRUE
  )
)

Is there a way to only display one question at a time?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.