Just learned an amazing #rstats trick: You can embed #learnr apps using `knitr::include_app()` for live coding demos *inside* #xaringan slides! 🤯 This way you don't have to switch b/w slides and #rstudio IDE for live demos, reducing cognitive load. #rmarkdown knows no bounds! 🤩
Here's a little code snippet that shows how:
IMO live coding inside slides would be particularly useful for illustrating common beginner mistakes and "gotchas" (as demo'd above). If you have the #shiny apps publishing capacity, you could even have students type code inside slides along with you in real time
This might make it easier for new learners to focus on understanding how the *code itself* works instead of also trying to simultaneously navigate the complexities of the RStudio IDE, which would reduce extraneous load. Curious to hear what others think!
• • •
Missing some Tweet in this thread? You can try to
force a refresh