RSVBac
Overview
Repository Structure and Data Availability
All analyses are provided as individual Quarto (.qmd) notebooks, which can be rendered independently. Each notebook reads processed .rds files from the dataframes/ folder and generates publication-quality figures and statistical outputs.
You can clone or download this repository to your local machine.
Setting Required Path Variable
Set the following environment variable in R before running notebooks:
Sys.setenv(BOX_PATH_RSVBacPublication = "/path/to/your_project")
Alternatively, add to your .Renviron file:
BOX_PATH_RSVBacPublication=/path/to/your_project
Reproducible R Environment with renv
This repository uses renv to ensure your R environment matches exactly with that used for manuscript analysis.
Setup Steps:
Install renv (if you don’t already have it):
install.packages("renv")From the project directory (with
renv.lockpresent), restore all required package versions with:renv::restore()This will install all necessary packages into a project-local library for full reproducibility.
Rendering the Project
You may render the entire project from the terminal:
quarto render
Or use “Render” or “Build” in RStudio.