coatless-rpkg / assignr

Tools for Educators Writing Assignments in RMarkdown
https://r-pkg.thecoatlessprofessor.com/assignr/
42 stars 7 forks source link

Rubric or user-specified chunk types #1

Open daviddalpiaz opened 6 years ago

daviddalpiaz commented 6 years ago
coatless commented 6 years ago

My thought on the next iteration is to define a custom markdown engine in a similar manner to how bookdown generates theorem, definition, lemma, et cetera environments. May be a bit more robust than the current approach.

We could still add a flag for "xyz" tagging. Likely need to figure out the best way to specify how the flag should propagate to the two output results. Maybe create a document object with the intended overflags for each one?

daviddalpiaz commented 6 years ago

The former is probably the way we should go. You raise a good point about tag propagation. Currently students are exposed to solution = TRUE.

coatless commented 6 years ago

So, I've toyed around with this. The issue we'll run into with going from:

```{asis, solution = TRUE}

to:

is this assumes only _text_ is being displayed. Having the `solution = TRUE` flag allows us to still use the `r` engine, e.g.


How would you feel if I just removed the tagging architecture on the rendered Rmd files? (e.g. delete `solution = TRUE`, et cetera.)
daviddalpiaz commented 6 years ago

Just removing the tagging in the output is what I had in mind.