TIME30-45 MIN
DO THISBEFORE AUG 13
BRINGYOUR LAPTOP

FIELD GUIDE 01

Prepare your computer.

Install the required tools, run the readiness check, and arrive with one project that both you and your coding agent can open.

START HERE

Know the job of each tool.

Tool Use in camp Required?
R Run code and carry out statistical analysis. Yes
RStudio Desktop Edit scripts and inspect files, objects, and plots. Recommended
Quarto Render the optional field notebook and slides. Yes
Codex Use project files when helping with code. Yes
Claude Code Use as an alternative coding agent. Optional

OPTIONAL PRIMER · 49 MINUTES

Watch a gentle introduction to R.

This recorded walkthrough introduces the R environment and the basic workflow we will use in Math Camp. It is designed for students opening R for the first time and also works as a concise refresher before the coding lessons.

A gentle introduction to R · 48:55 OPEN IN GOOGLE DRIVE ↗

INSTALL ORDER

Install the tools before you open the project.

  1. 01Install R from CRAN. On Windows, accept the default installer options. On macOS, choose the package that matches your processor. RStudio should find R automatically.
  2. 02Install RStudio Desktop.
  3. 03Install Quarto. Restart RStudio after the installation so the terminal can find Quarto.
  4. 04Download the complete Math Camp repository. Use GitHub’s Code → Download ZIP and unzip the download, or run git clone https://github.com/harvard-api209/math-camp.git.
  5. 05Open math-camp-2026.Rproj in RStudio. Opening the project file keeps the paths used in every exercise available. A script opened by itself from Downloads loses that project context.
  6. 06Sign in to Codex with the Harvard-supported account. Open the same project folder in Codex and confirm that you can see START-HERE.md.
KEEP ONE PROJECT

Keep scripts, data references, notes, and generated output inside the project. This keeps the workflow independent of Desktop files and temporary console history.

READINESS GATE

Start the analysis only after every check is green.

Open the Terminal tab in RStudio. Run the same command from the project root on macOS or Windows:

TERMINALAUTOMATED CHECK
Rscript code/check_setup.R --codex-confirmed

The checker verifies the project, R version, required packages, Quarto, frozen data, and your manual confirmation that Codex opens with the project. A red result gives you a repair instruction. A yellow result means that only the Codex confirmation remains.

If a package is missing, install exactly the list reported by the checker in the R console. Then run the gate again. A typical repair is:

R CONSOLEPACKAGE REPAIR
install.packages(c(
  "dplyr", "ggplot2", "jsonlite",
  "readr", "tidyr"
))
  • The final line says RESULT: GREEN.
  • RStudio shows math-camp-2026 as the open project.
  • Codex can read START-HERE.md in the same folder.
  • You can explain what each check established.

CODING AGENTS

Give the agent useful project context and protect private data.

Codex is the common baseline. You may use Claude Code as an alternative. Both agents can read project files, propose code, explain errors, and run checks. The student decides whether the evidence supports a policy claim.

FIRST PROMPT
Read this project without changing files. Identify the data directory, lesson pages, and any setup instructions. Tell me what you know from the files, what you infer, and what you still need me to decide.
PRIVACY

Use only public, synthetic, or course-approved data. Never paste personal records, credentials, API secrets, confidential research material, or identifiable student information into an AI tool.

IF SOMETHING FAILS

Bring the exact evidence from the failure.

Save the exact error, the command that produced it, your operating system, and the complete output of Rscript code/check_setup.R. Save the full text and use a screenshot as a supplement, because a screenshot may hide useful context.

On Windows, confirm that you extracted the ZIP before opening the project. On macOS, if you see a security warning, reopen the official installer through System Settings. Continue only with an official download. Students with a green result may help diagnose problems in class. Each student must also run the gate on their own laptop.

Open the student start file →