This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the EGAP (Evidence in Governance and Politics) Methods website, a Quarto-based multilingual educational resource for impact evaluation methodology. The site provides methods guides, software tools catalog, and teaching materials for researchers and practitioners.
# Preview the site locally (starts dev server with live reload)
quarto preview
# Build the site (outputs to _site/)
quarto render
# Render a single guide
quarto render guides/research-questions/effect-types_en.qmd
# Restore R package dependencies (required before first build)
# R will auto-activate renv via .Rprofile
R -e "renv::restore()"- guides/ — Methods guides organized by topic subdirectories:
analysis-procedures/,assessing-designs/,causal-inference/,data-collection/,implementation/,interpretation/,planning/,research-questions/
- index.qmd — Homepage with featured guides listing
- guides.qmd — Main guides index using Quarto listings
- software.qmd — Searchable R/Stata software catalog (uses DataTables)
- teaching.qmd — Links to Learning Days coursebook
Guides use underscore + language code before .qmd:
- English:
*_en.qmd(e.g.,effect-types_en.qmd) - Spanish:
*_es.qmd(e.g.,effect-types_es.qmd) - French:
*_fr.qmd(e.g.,effect-types_fr.qmd)
Language switching uses sidebar configuration in _quarto.yml with flag icons linking between translations.
Each guide includes:
title:— Guide titleauthor:— List with name/url pairsimage:— Thumbnail image filename (stored alongside the .qmd)bibliography:— BibTeX file for referencessidebar:— ID matching_quarto.ymlsidebar for language switcher (translations only)abstract:— Summary shown at top of guide
_quarto.yml— Site structure, navigation, sidebar definitions, HTML format options_language.yml— Custom labels (author, date display)renv.lock/renv/— R package versions for reproducibilityDESCRIPTION— R package dependencies list
freeze: auto— Caches code execution results in_freeze/cache: true— R code chunk cachingcode-fold: true— Collapsible code blocks- Listings for grid-based guide indexes
- Custom partials in
partials/for title blocks and TOC
GitHub Actions (.github/workflows/build-quarto.yml) builds and publishes to GitHub Pages on push to main. The workflow:
- Sets up R with renv
- Installs system dependencies (libgit2, udunits2, gdal, geos, proj)
- Runs
quarto renderand publishes togh-pagesbranch