RMarkdown Driven Development

A step in the RmdDD process

Jan 30, 2020 11:00 AM
rstudio::conf(2020) | csv,conf,v5
San Francisco, CA
This talk was presented both at rstudio::conf(2020) and csv,conf,v5. The video embedded below is from the latter.

RMarkdown enables analysts to engage with code interactively, embrace literate programming, and rapidly produce a wide variety of high-quality data products such as documents, emails, dashboards, and websites. However, RMarkdown is less commonly explored and celebrated for the important role it can play in helping R users grow into developers. In this talk, I will provide an overview of RMarkdown Driven Development, a workflow for converting one-off analysis into a well-engineered and well-designed R package with deep empathy for user needs. We will explore how the methodical incorporation of good coding practices such as modularization and testing naturally evolves a single-file RMarkdown into an R project or package. Along the way, we will discuss big-picture questions like “optimal stopping” (why some data products are better left as single files or projects) and concrete details such as the {here} and {testthat} packages which can provide step-change improvements to project sustainability.

Emily Riederer
Senior Analytics Manager

Interested in reproducible research, causal inference, and feature engineering