Programmatic Manipulation of Quarto Documents for Teaching

Author

Colin Rundel

Abstract

In this talk we will discuss the use of the parsermd package for the programmatic manipulation of Quarto documents. As the name implies the parsermd package was originally developed for the parsing and manipulation of RMarkdown documents, but we have recently worked to expand this functionality to support Quarto documents and their specific features (e.g. fenced divs, yaml chunk options, shortcodes, etc.). We will briefly review the structure of a typical Quarto document and how this is then represented within R once parsed as an abstract syntax tree (AST). The remainder of the talk will then focus on practical usage examples of these tools for teaching with Quarto, including automated feedback and cleaning, document restructuring, and others time permitting.

Slides

Source code for slides

Full screen slides

Speaker

Photo of Colin Rundel

Colin Rundel is Associate Professor of the Practice at Duke University where he has been teaching since 2012. His work focuses on teaching statistical computing to both undergraduate and graduate students in both R and Python.