r-quarto

Create R scripts and Quarto chapters with reproducible analysis artifacts.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/naj2r/claude-econ-paper-template --skill r-quarto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-quarto
Source: https://github.com/naj2r/claude-econ-paper-template/tree/main/.claude/skills/r-quarto
Command: npx skills add https://github.com/naj2r/claude-econ-paper-template --skill r-quarto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many replication and analysis workflows require reproducible R code embedded in Quarto chapters or standalone R scripts but lack consistent templates, chunk options, and project paths, which makes sharing, rendering, and exporting tables to Overleaf error-prone and time-consuming.

Core Features & Use Cases

  • Provides templates and conventions for standalone R analysis scripts that load data, run regressions, and save results using tidyverse, fixest, modelsummary, and haven.
  • Supplies Quarto chapter templates with labeled executable chunks, recommended chunk options (echo, eval, message), and guidance for producing publication-ready tables and figures for a replication book.
  • Use cases include creating new replication_book chapters, converting Stata-based analyses into Quarto, and exporting modelsummary tables to Overleaf table pipelines.

Quick Start

Create a new Quarto chapter that sets root paths, reads the target Stata dataset with haven, runs the specified feols regression with fixest, and writes a modelsummary table to the Overleaf files directory.

Frequently Asked Questions about r-quarto

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reproducible Quarto chapters for an empirical economics replication book?

Reproducible Quarto chapters are generated using templates with labeled executable chunks, consistent chunk options, and standardized project root paths. These templates integrate tidyverse, fixest, modelsummary, and haven to produce executable code and publication-ready analysis artifacts.

How do I export modelsummary regression tables to Overleaf from Quarto?

Exporting modelsummary tables to Overleaf requires setting standardized project root and Overleaf output paths within Quarto. The templates configure these directories so regression results automatically route to the correct Overleaf files folder during rendering.

Can I convert Stata-based analyses into Quarto using R scripts?

Stata datasets can be read into Quarto using the haven package, allowing you to convert Stata-based analyses into R scripts. The templates apply fixest for regressions and modelsummary for tables, replacing the original Stata workflow with reproducible R code.

What chunk options and conventions do I need for Quarto chapters in research projects?

Quarto chapters require consistent chunk labels and specific chunk options like echo, eval, and message. Conventions also include using set.seed for reproducibility and applying tidyverse, fixest, modelsummary, and haven standards to ensure code executes correctly and prints properly.

Does this work for standalone R scripts or only Quarto books?

Both standalone R scripts and Quarto chapters are supported. Standalone scripts receive templates for loading data, running regressions, and saving results, while Quarto chapters add labeled chunks and rendering options for broader book-based replication workflows.