demoR icon indicating copy to clipboard operation
demoR copied to clipboard

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

Open benjaminleroy opened this issue 6 years ago • 2 comments

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)?

benjaminleroy avatar Aug 07 '19 21:08 benjaminleroy

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.

kbodwin avatar Aug 08 '19 20:08 kbodwin

Awesome - thanks

benjaminleroy avatar Aug 09 '19 01:08 benjaminleroy