kbodwin / demoR

(this package has been replaced by "flair")
https://kbodwin.github.io/flair/index.html
Other
47 stars 7 forks source link

Mimic `assignr` to have a function knit files with and without demoR coding? #11

Open benjaminleroy opened 5 years ago

benjaminleroy commented 5 years ago

Saw your talk at JSM - I like the idea of this package.

I happen to currently write lectures in an Rmd and then toggle between creating a output = slidy_presentation and output = html file - the first to present and the second (associated with a clean Rmd) to give to students a "lecture notes".

At the end I provide students with 3 files:

  1. lecture_slides.html (to present)
  2. lecture.html (for notes)
  3. lecture.Rmd (for notes)

In this process I might want to have highlighting ++ seen in the lecture_slides, but not the student note. Might you consider a way to processing step that removes all demoR code (similar to assignr process)?

kbodwin commented 5 years ago

This is a great idea! I also use this slide/source code duality and it's a pain to make both. I'll look into this, thank you for the tip.

benjaminleroy commented 5 years ago

Awesome - thanks