Skip to content

/review-r

Category: review
Field: economics
License: MIT
Updated: 2026-04
Stages: referee-simulation

Review R Scripts

Run the comprehensive R code review protocol.

Steps

  1. Identify scripts to review:
  2. If $ARGUMENTS is a specific .R filename: review that file only
  3. If $ARGUMENTS is LectureN: review all R scripts matching that lecture
  4. If $ARGUMENTS is all: review all R scripts in scripts/R/ and Figures/*/

  5. For each script, launch the r-reviewer agent with instructions to:

  6. Follow the full protocol in the agent instructions
  7. Read .claude/rules/r-code-conventions.md for current standards
  8. Save report to quality_reports/[script_name]_r_review.md

  9. After all reviews complete, present a summary:

  10. Total issues found per script
  11. Breakdown by severity (Critical / High / Medium / Low)
  12. Top 3 most critical issues

  13. IMPORTANT: Do NOT edit any R source files. Only produce reports. Fixes are applied after user review.