Dynamic Documents

Ranae Dietzel and Andee Kaplan

The Role of Dynamic Documents in Reproducibility

What is a dynamic document?

Research has many moving parts

When you start a publication, you don’t always have a map of where you’re going. This usually means you also can’t provide a map of where you’ve been, even if you can give someone directions on how to get there.

A dynamic document is more than just a pretty face.

Dynamic documents are not a new idea.

When I was playing Oregon Trail, people were planning ways to tie together their text, code, and data in a way that they would not have to repeat work and others could follow what they did.

Probably so they could keep track of their Oregon Trail successes and failures.

Statistical Analyses and Reproducible Research

Gentleman and Lang, 2004

Compendium

Gentleman and Lang introduce the idea of a compendium as both

Key Words: Compendium, Dynamic documents, Literate programming, Markup language, Perl, Python, R

Compendium

Compendium Elements

Gentleman and Lang define a dynamic document as an ordered composition of code chunks and text chunks.

Your turn

Talk with a partner about all of the components that need to go into a report or publication. Draw a concept diagram of the connections that need to be made between these components in order to produce a runnable document.

In other words, pretend knitr has not yet been invented. What needs to happen for a dynamic document to become a reality?

Gentleman and Lang

Further motivation

Literate programming

Literate programming

Future directions

What are some barriers to the creation and use of compendiums and dynamic documents?

Challenge!

Find an article published with a compendium or dynamic document in your discipline.