4 R Markdown Strategies:
1 - Literate Programming
2 - Data Product
3 - Control Document
4 - Template
themockup.blog/posts/2020-07-…
#rstats #datascience #tidyverse
Use RMarkdown like a reproducible scientific notebook, capturing code, comments, and specific outputs in a output document.
All in plain text that is easily human-readable in version control!
Generate all sorts of fancy outputs from RMarkdown, such as:
- Presentations (Powerpoint or web native like remark.js)
- Dashboards w/ flexdashboards
- Reports as HTML, PDF, Word, etc
- Entire websites w/ blogdown, hugodown, distill
Use RMarkdown with parameters to create multiple outputs from one input or use child documents to source multiple inputs into one output.
Generate output emails with blastula or automate ETL work, scheduled reporting, etc via RStudio Connect.
Knit reports programmatically w/ knit::render()
Use {purrr} within a document to generate multiple chunks at once
Use {whisker} to template plain text documents (R, RMD, txt, etc)
usethis::use_template() (h/t to @sharlagelfand ) to create reporting templates.