I'm looking for an example of a drop-down quiz that can be embedded in an html output doc using R markdown. I think this is possible without a running R session (i.e. not shiny). I've looked into html widget or R package exams but still having a hard time finding a simple example or where to begin. Template solutions I've found just do not address the functionality I'm looking for. The more I look into this the more I think the solution is to find some kind of html or javascript solution, however I am unsure if js solution can be embedded in R markdown document. My knowledge base is just basic html, and a little css, and I am just learning R markdown, so I'm wading through all these different technologies to try and find a solution that works for me. For context, I am writing a textbook in R markdown and looking for embedded dropdown quizzes.
Here is the closest thing to a solution that I have found thus far. Multiple-choice is not what I want as dropdown would be better, but when I embed this solution directly into my R markdown document the multiple choice DOES work as intended!!
I am now looking into how to use this type of solution to get the desired dropdown.
I forked the gist you linked to and changed the radio buttons to a dropdown. Multiple choice quiz question Rmarkdown · GitHub
amazing, thanks so much !! I knew this stuff could be accomplished without an active R session, which is super important for what I'm working on. Appreciate that you took the time out of your day !
This topic was automatically closed 7 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.