Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdding hyperlinks to incorrect message #136
Comments
|
You could write an R function that automates the repetitive message: alphabet_answer <- function(x) {
answer(x, message = "See [here](https://en.wikipedia.org/wiki/English_alphabet) and try again.")
} |
|
@jjallaire Sure, that's a good workaround too. I think it might be nice to have it built into the |
|
Yes, you are right that it's an oversight to now allow HTML for |
|
Great, thanks @jjallaire. Once that's in I can do a PR to the help file indicating this feature is available for these messages. Being able to point directly to resources is a nice feature. |
It's possible to add a hyperlink to the message displayed when an incorrect choice is selected for a multiple choice question, e.g.
However in most cases I'd like to display the same incorrect message for all wrong answers, so would like to be able to do something like the following.
This doesn't give an error however the hyperlink does not work. I think it would be a nice feature to add. The current alternative is the following, which requires repeating the message for each option.