DATETHU AUG 13
TIME3–4 PM
MODEINDIVIDUAL LAPTOPS

CODING LAB 1

Installation clinic.

Today is an installation clinic. Every laptop reaches green or leaves with the exact failure, a repair step, and a person responsible for following up.

OPEN LAB HANDOUT PDF ↗OPEN SETUP GUIDE →

WHY THIS LAB

Setup is part of the research workflow.

A path error, missing package, or closed project can make correct code fail. This installation clinic is our first reproducibility exercise.

Work on your own laptop and keep the complete error text visible. Classmates and instructors may help diagnose. Every student runs the final check personally. Students who finish early help someone else gather evidence.

DONE WHEN

The checker prints RESULT: GREEN, RStudio shows the course project, and Codex can read START-HERE.md in that same folder.

00–05 MINUTES

Show your status before repairing anything.

  1. 01Open math-camp-2026.Rproj in RStudio.
  2. 02Open the Terminal tab.
  3. 03Run Rscript code/check_setup.R.
  4. 04Display green, yellow, or red.

Keep the exact error, command, complete output, operating system, and project path visible so the room can route you to the right help lane.

05–50 MINUTES

Repair one layer at a time.

Project + R

Extract the ZIP, open the .Rproj, and confirm R 4.2 or newer.

Packages

Install only the packages named by the checker, then rerun it.

Quarto

Install Quarto, restart RStudio, and confirm it is on PATH.

Data

Confirm the complete repository contains the frozen CSV.

Codex

Sign in with the Harvard-supported account and open the course project.

Lane Common symptom First repair
Windows Project or data not found. Extract the ZIP fully; do not work inside the compressed folder.
macOS Installer blocked or Quarto missing. Use the official installer, reopen through System Settings if prompted, then restart RStudio.
Packages The checker names missing libraries. Copy the reported install.packages() command into the R console.
Account Codex cannot open or cannot see the project. Confirm the Harvard-supported sign-in, then open the folder containing START-HERE.md.

Open the detailed installation guide →

50–57 MINUTES

Run the complete readiness gate.

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

The gate checks the project root, R version, required packages, Quarto, the frozen data file, and your confirmation that Codex opens with the project.

  • The final line says RESULT: GREEN.
  • RStudio shows math-camp-2026 as the open project.
  • Codex can read START-HERE.md.
  • You know whether your earlier failure came from the project, R, packages, Quarto, data, or account layer.

OPTIONAL · 8–10 MINUTES · AFTER YOUR GATE IS GREEN

Prove that the agent and the student see the same project.

This optional 8–10 minute extension runs while setup repairs continue. Open the course project in Codex and give it a read-only request:

READ-ONLY PROJECT CHECK
Read this project without changing files or running commands. Locate (1) the course start instructions, (2) the frozen WDI data, and (3) the indicator dictionary. Return each exact file path and one sentence about what the file contains. Separate statements you read from the files from inferences you made.
  1. 01Check each path manually. Use RStudio’s Files pane rather than accepting the answer from memory.
  2. 02Open one named file. Confirm that the description matches what the file actually contains.
  3. 03Name the boundary. Write one sentence distinguishing what the agent learned from files from what it inferred.
NO SUBMISSION

This is a first supervised agent exercise, not a race and not a graded artifact. If your machine is not green, continue repairing setup instead.

57–60 MINUTES

Every red result leaves with an owned repair.

If the result is red, save a four-part repair record:

  1. 01Machine. Operating system and version.
  2. 02Evidence. Exact command and complete output.
  3. 03Next step. One concrete repair to try.
  4. 04Owner. The instructor or ICA who will follow up.

There is no submission and no grade. The operational rule is simple: leave green, or leave with an owned repair plan that gets you to green before Lesson 2.

Open or print the one-page Lab 1 handout →