Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Repository files navigation

Parameterizable Reproducible Research

An example of a useful pattern in R -- wrapping a reproducible research report in an R script with an external configuration file.

This demo pulls WMATA Disruption Report data from a public API, then based on the configuration file, generates a custom PDF report complete with charts and tables.

Thank you to Code for DC for the link to the data on Open Data DC: http://opendatadc.org/dataset/wmata-disruption-reports

Running

You'll need to install the packages loaded at the top of the .R file. Then, edit config.R to be one of "Green", "Yellow", "Red", "Blue", or "Orange", and do this:

./param-repro-rsch.R --verbose --config config.R

You can also do ./param-repro-rsch.R -h to see the usage information.

Credits

Written by Harlan Harris at the Education Advisory Board.

This work has been released into the public domain. Please see the Creative Commons CC0 1.0 Universal dedication for details. A copy of the dedication is provided as LICENSE.md.

About

An example of a useful pattern in R -- wrapping a reproducible research report in an R script with an external configuration file.

Resources

Stars

3 stars

Watchers

15 watching

Forks

Releases

Packages

Contributors

Languages