Possibility to install question in an interactive R-Markdown document ?

Hi:) I'm relatively new with Shiny and want to implement question in a R-Markdown document. This worked very well with the learn package, but as soon as I add some Shiny widgets (and thus make the markdown document interactive) the learn package no longer works.......Then I tried it with shinysurvey but but unfortunately that doesn't give my students the opportunity to see the solutions to the answers (which is logical, since it's actually a survey and not a quiz - which I would actually need). I also tried to work with the shinyquiz package, but this didn't work either......
Is there a way that I can implement questions in an interactive R-Markdwon document where the students are shown the correct solution to the quiz questions?