This repository contains data and R code which are supplements to:
Paper Title, by Author , Author , and Author , (20XX)
Please cite that paper, and/or the Zenodo data reference (https://doi.org/%5BZENODO_DOI%5D) when using data or referring to this study.
data/
contains data from the study and a data dictionary describing all variables.R/
contains functions used in this analysis.reports/
contains literate code for R Markdown reports generated in the analysisoutputs/
contains compiled reports and figures.- This project uses the
{targets} framework to
organize build steps for analysis pipeline. The steps are defined in
the
_targets.R
file and the workflow can be executed by runningrun.R
viasource("run.R")
in your R terminal orRscript run.R
in your system shell. The schematic figure below summarizes the steps. (The figure is generated usingmermaid.js
syntax and should display as a graph on GitHub. It can also be viewed by pasting the code into https://mermaid.live.)
graph LR
subgraph Project Workflow
direction LR
x835f456db5951df5(["all_plot_files"]):::built --> xbda0fd67e19f73bc(["outputs_readme"]):::queued
x07b56d1fbca21cf3(["summarized_quantities"]):::built --> xbda0fd67e19f73bc(["outputs_readme"]):::queued
x9e3eef4eeb77d655(["report_template"]):::built --> x9e3eef4eeb77d655(["report_template"]):::built
end
linkStyle 0 stroke-width:0px;
- This project was built with R version 4.2.2 (2022-10-31). This project
uses the {renv} framework to record
R package dependencies and versions. Packages and versions used are
recorded in
renv.lock
and code used to manage dependencies is inrenv/
and other files in the root project directory. On starting an R session in the working directory, runrenv::restore()
to install R package dependencies.