2. generate Rmds from your R scripts w/ a special syntax for comments: #`
3. knitr::purl translates your .Rmd to .R script! With options for comments translating into code chunks. Or not. Or with full narratives and text.
yihui.org/en/2018/08/gif…
yihui.org/en/2018/06/cac…
More than 40 languages supported in knitr!!!!
{r, child='analysis.Rmd'}
This has have changed my whole way of thinking about communication and publishing, I use them every day. And Yihui just showed many things I've never heard of!