This guide walks you through setting up and running the inappropriate acid suppressor agent use meta-analysis pipeline from scratch. By the end, you will have a fully reproduced analysis — including pooled prevalence estimates, subgroup analyses, meta-regression models, and a rendered Quarto report — on your local machine.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/namakala/inappropriate-acid-suppressor-agent-use/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure you have the following installed:- git — for cloning the repository
- R 4.x — the analysis runtime (download)
- Quarto — for rendering the report (download)
- RStudio (optional) — recommended IDE for interactive use (download)
- tinytex — required to compile the report to PDF (installed in step 2 below)
Setup and run
Clone the repository
Clone the project from GitHub to your local machine:Alternatively, you can fork the repository and clone your fork, or open it directly as a new project in RStudio.
Install renv
If you do not already have the
renv package installed, run the following in your R console:Restore the R environment
Restore all required packages from the lockfile:This reads
renv.lock and installs every package at the exact version used in the original analysis.After
renv::restore() completes without errors, restart your R session before continuing. This ensures all restored packages are loaded correctly into the new session.Prepare your data
Export the study-level dataset as The pipeline expects columns including
data.csv and place it in the data/raw/ directory. The directory structure must look like this:Author, Sample_size, Inappropriate_indication, Prevalence, Year, Continent, Setting, JBI_Classification, and use_guideline. See the Introduction for the full variable reference.Run the pipeline
Execute the full analysis pipeline:This reads
_targets.R, which defines every step in the analysis — from reading and cleaning the data, through meta-analysis, subgroup analyses, meta-regression, and publication bias assessment — and executes them in the correct order. When the pipeline finishes, the rendered report is written to docs/report.pdf (or docs/report.html).Check pipeline status
To visualize the dependency graph of all pipeline targets and see which steps are up to date, run:What to expect
After a successful run, you will find:docs/report.pdf(ordocs/report.html) — the fully rendered analysis reportdocs/figures/— individual forest plots and funnel plots for the overall and subgroup analyses- Cached target objects stored by
targetsin_targets/— re-runningtar_make()will only recompute steps whose inputs have changed
