Open coatless opened 8 months ago
Would this feature also support rendered radio buttons for e.g. MCQs as well (as in https://nareal.github.io/naquiz/example.html)? It's easy to emulate this with code otherwise, but I'm curious since I believe learnr and webexercises also supports some of these rendered simpler html elements.
Also of interest, do you think the approach here would lend it self well to be supported in the pyodide implementation as well? I'm planning to write a textbook using R and Py and I'm excited to see the developments here =)
@joelostblom the focus would solely be on the code evaluation portion.
The MC/MS/FIB offerings from {learnr}
are better left as a standalone quarto extension as the format is reusable across languages like quarto-quiz
or the naquiz
format you identified. Plus, for language-specific implementations like {webexercises}
, these would address content specific to R. For example:
Given a seed of
<dynamic-seed>
what would be the mean of the vector given by<dynamic-numbers>
.
- Option 1
- Option 2
- ...
At some point, I could imagine the joining of quarto-webr
/quarto-pyodide
+ quarto-quiz
to form quarto-learn
, but I'm not likely to lead that project.
This would be excellent! My use case is writing a Quarto book with learnr exercises embedded in it. Right now, I need to keep my book separate from my tutorials. It would be much nicer to put everything into a single document. In this way, students could (be forced to) answer questions as they move through the textbook.
Offer the code exercise feature from {learnr}.
This should match more closely with the desire of https://github.com/coatless/quarto-webr/issues/25
Sample exercise: https://github.com/rstudio/learnr/blob/aeb8144f5335a1132dbb1c0a0302fd2f3e94b875/inst/tutorials/ex-data-filter/ex-data-filter.Rmd#L236
Proposed markup: