Template for minimal reproducible reporting in R
Install the containeRit package from o2r.info github:
devtools::install_github("r-hub/sysreqs")
devtools::install_github("o2r-project/containerit")
- Write and do analyses in
this_report.Rnw
- When done, or after important changes, call
run.sh
- can set up Rstudio to use run.sh as build script. Run.sh will:
- Call containeRit on the script
- build the docker
- push the docker to (local) docker hub
- write gorbachev.yaml with latest docker to allow Gorbachev CI system to run report
- build report in the new docker to test reproducibility
- Set up Gorbachev CI for report on gorbachev.io
Currently, texlive is not automatically added to the docker, so report is converted to .tex, but not rendered. Can do this locally, or add texlive (full) to render report within docker.