Caching and Distributing Statistical Analyses in R
Roger D. Peng, Johns Hopkins, Bloomberg School, Public Health · Collection of Biostatistics Research Archive · 2007
We present the cacher package for R, which provides tools for caching statistical analy-ses and for distributing these analyses to others in an efficient manner. The cacher package takes objects created by evaluating R expressions and stores them in key-value databases. These databases of cached objects can subsequently be assembled into packages for distri-bution over the web. The cacher package also provides tools to help readers examine the data and code in a statistical analysis and reproduce, modify, or improve upon the results. In addition, readers can easily conduct alternate analyses of the data. We describe the design and implementation of the cacher package and provide two examples of how the package can be used for reproducible research. This vignette was originally published as Peng (2008).