o2r examples
Examples for Executable Research Compendia and compatible workspaces. Examples are ZIP archives to allow direct upload to the o2r reproducibility service, or directories which must be zipped before upload.
The o2r demo server is available at http://o2r.uni-muenster.de/.
For instructions on how to run the o2r reference implementation locally, see https://github.com/o2r-project/reference-implementation.
NOTE: Licenses of examples vary, please check carefully if they suit your needs.
We want to thank everyone who contributed a workspace! Why not add your own?
Workspaces
Journal articles
- Garcia, M., Portney, K., and Islam, S.: A question driven socio-hydrological modeling process, Hydrol. Earth Syst. Sci., 20, 73-92, https://doi.org/10.5194/hess-20-73-2016, 2016. [License: Creative Commons Attribution 3.0 License]
- Fraza, E., Elsner, J. B., and Jagger, T. H.: A space–time statistical climate model for hurricane intensification in the North Atlantic basin, Adv. Stat. Clim. Meteorol. Oceanogr., 2, 105-114, https://doi.org/10.5194/ascmo-2-105-2016, 2016. [License: Creative Commons Attribution 3.0 License]
Demos
R Markdown
- Minimal workspace as ZIP archive with two files:
main.Rmd
in R Markdown format as the main analysis, anddisplay.html
in HTML for display [License: Attribution 4.0 International (CC BY 4.0)]. - R Markdown workspace with data file with three files:
main.Rmd
in R Markdown format as the main analysis,data.csv
providing the raw data for the analysis, anddisplay.html
in HTML for display [License: Attribution 4.0 International (CC BY 4.0)]. The workspace is also available in three variants to demonstrate the capabilities of the platform:- R Markdown workspace with randomised plot changes the order of the included bar plot. This example demonstrates differences between the uploaded display file and the one created by the platform in a wrongly designed workflow (i.e. using random effects in a way breaking reproducibility).
- R Markdown workspace with wrong display file has a mismatch between the plot created in the code and the plot included in the display file. This example demonstrates differences between the uploaded display file and the one created by the platform.
- R Markdown workspace with different dataset is a direct copy of the original R Markdown workspace but with different data values in
data.csv
. This example can be used to demonstrate a simple substitution of tabular data from a plain text format.
R
- Minimal workspace as ZIP archive with two files,
main.R
anddisplay.png
, with data from http://www.budgetshippingcontainers.co.uk [License: Attribution 4.0 International (CC BY 4.0)]
Networking
The ERC's runtime container is a standalone environment, and it must not rely on any online resources to work. The following two are a minimal demonstrator for this conceptual decision.
- ping workspace contains a
Dockerfile
(so the reproducibility service will not create one) which runs theping
tool to127.0.0.1
, i.e. the localhost loopback, for 60 seconds. The other included files are merely there to make the metadata extraction work. This workspace can be successfully executed with the reproducibility service. [License: Attribution 4.0 International (CC BY 4.0)] - ping workspace "bad" contains files just as the previous workspace, but tries to ping an online URL (
o2r.info
). This workspace results in a failed execution with the reproducibility service. [License: Attribution 4.0 International (CC BY 4.0)]
ERC
- metadata test (ready to use ZIP archive) [License: Attribution 4.0 International (CC BY 4.0)]
- ping test (ready to use ZIP archive) [License: Attribution 4.0 International (CC BY 4.0)]
Tools
The directory corpus
contains an R Markdown document to upload the full corpus of demo papers to a local or remote instance of the o2r reference implementation.