This repository is supposed to mimic a research project containing an analysis, simulation, and report written in RMarkdown. I also include the presentation slides from the workshop held on 11/19/2021.
There are three key takeaways that this repository is hoping to showcase:
- Annotation: All of the code files (except
analysis/analysis_UGLY.R) are commented and structured according to the advice given in the workshop. - Organization: The whole repository tries to follow the advice as well.
- Replicability: Finally, by including
renvinto the project, I also hope to show how easy it is to reproduce the project environment with very little space/time.
- The
analysisfolder contains the clean-codedanalysis.Rand exemplary ugly-codedanalysis_UGLY.Rfiles, which run a linear regression of the simulated data and save a regression table and predicted value plots for the report. - The
datafolder contains the.csvsimulated data. - The
reportfolder contains all the figures, tables, and.Rmdreport file, compiling them together into a final PDF. - The
simulationfolder contains a.Rscript that creates the simulated data used in the analysis. - The
renvfolder and related files ought not to be modified and are included for replicability purposes. To see howrenvworks check out Introduction to renv. - The
PML_presentationfolder is not part of the example and contains the presentation slides from the workshop.