Skip to content

Conversation

@gadenbuie
Copy link
Member

@gadenbuie gadenbuie commented Sep 8, 2022

Sets the default value of try_again in question_checkbox() to the message suggested in #731. This gives a better hint that there could be more than one answer and only when retries are allowed.

question_checkbox(
  "What's the best package?",
  answer("tidyverse", correct = TRUE),
  answer("base", correct = TRUE),
  allow_retry = TRUE
)
#> Question: "What's the best package?"
#>   type: "learnr_checkbox"
#>   allow_retry: TRUE
#>   random_answer_order: FALSE
#>   answers:
#>     ✔: "tidyverse"
#>     ✔: "base"
#>   messages:
#>     correct: "Correct!"
#>     incorrect: "Incorrect"
#>     try_again: "Incorrect. Be sure to select every correct answer." 
Screen.Recording.2022-09-08.at.3.32.53.PM.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants