How can you ensure learnr multiple-choice questions do not have a default answer selected? For example, the code below...
```{r KC-1, echo=FALSE}
question("TRUE or FALSE: My R Scripts can look sloppy as long as RStudio is able to run it.",
answer("TRUE", message = "Not quite. Think about all the *computers* you are creating computer programs for."),
answer("FALSE", correct = TRUE, message = "That's right. You should strive to make your computer programs should be interpretable by other humans as well."),
allow_retry = FALSE
)
```
generates this...
, and I do not want to have FALSE (or any other option) to be pre-selected.
oh !
it seems 'FALSE' is some special value, so this would work...
```{r KC-1, echo=FALSE}
question("True or False: My R Scripts can look sloppy as long as RStudio is able to run it.",
answer("True", message = "Not quite. Think about all the *computers* you are creating computer programs for."),
answer("False", correct = TRUE, message = "That's right. You should strive to make your computer programs should be interpretable by other humans as well."),
allow_retry = FALSE
)
If you change the case of the options to "True" and "False", the "FALSE" option won't be inadvertently selected initially.
```{r KC-1, echo=FALSE}
question("TRUE or FALSE: My R Scripts can look sloppy as long as RStudio is able to run it.",
answer("True", message = "Not quite. Think about all the *computers* you are creating computer programs for."),
answer("False", correct = TRUE, message = "That's right. You should strive to make your computer programs should be interpretable by other humans as well."),
allow_retry = FALSE
)
```