3 Methods
This section describes the tools and methods used to create and utilize this template.
This template itself is the “method”. It prescribes a specific way to organize and execute a reproducible research project.
3.1 Core Technologies
- Quarto: The primary authoring tool. It uses Markdown syntax for text and integrates executable code chunks (primarily R, but also Python, Julia, etc.). Key features used:
- Book Format: Organizes the article into chapters/sections.
 - Code Chunks: Embed R code directly (
{r}) for analysis and visualization. - Citations: Managed via 
references.bib(BibTeX) and formatted usingapa7ed.csl. You can use Zotero in RStudio for this. - Embedding Outputs: Results from scripts in 
Scripts/can be embedded into the narrative using{{< embed >}}(see Results section). 
 - R & RStudio: The computational engine and integrated development environment (IDE). R/RStudio is used for statistical analysis, data manipulation, and creating visualizations within Quarto documents.
 - Git & GitHub:
 - Environment Management:
- renv: (Proper Reproducibility) Tracks and restores specific R package versions used in the project. The 
renv.lockfile is the key component. - Docker: (Full Reproducibility) Packages the entire software environment (R, RStudio, Quarto, packages, LaTeX) into a container. This guarantees that the environment is identical for anyone running the project. The 
docker/folder contains the necessary configuration (Dockerfile,docker-compose.yml,start/stopscripts). 
 - renv: (Proper Reproducibility) Tracks and restores specific R package versions used in the project. The 
 - Sharing & Publication:
- OSF: A platform for registering, storing, and sharing research materials openly.
 - GitHub Pages: A free service to host the rendered HTML version of your Quarto book/article directly from your GitHub repository. The 
.github/workflows/deploy.ymlfile automates this process. 
 
3.2 Workflow Integration
If you need to learn a little more about Reproducible Research with R/RStudio, there are excellent free e-books:
- R for Data Science
 - Building reproducible analytical pipelines with R
 - The Open Science Manual: Make Your Scientific Research Accessible and Reproducible
 
The typical workflow using this template for Full Reproducibility involves:
- Setting up the environment using Docker (
docker/start.shorstart.bat). - Working within the RStudio container to edit 
.qmdfiles, run code chunks, and manage R packages (tracked byrenv). - Rendering the document using 
quarto renderin the RStudio Terminal. - Stopping the Docker environment when done (
docker/stop.shorstop.bat). - Using Git locally to commit and push changes to your GitHub repository.
 - Optionally, pushing to the 
mainbranch triggers the GitHub Actions workflow to automatically publish the updated HTML site to GitHub Pages.