Commit aae3531
Address PR #392 R6 review (2 P3, all non-blocking)
R6 was ✅ Looks good — 2 P3 polish items.
P3 #1 — version-aware repro installer:
benchmarks/R/requirements.R installed whatever CRAN currently
served via install.packages, while the generator and parity test
hard-pin DIDHAD == 2.0.0 / YatchewTest == 1.1.1 / nprobust ==
0.5.0. A fresh R environment regenerating the goldens would have
the generator's stopifnot(packageVersion == "X.Y.Z") immediately
abort.
Fix: add `install_pinned_version()` helper using
remotes::install_version with `upgrade = "never"`, run it after
the bulk CRAN install for DIDHAD/YatchewTest/nprobust. Idempotent
when the correct version is already installed. Bump procedure
documented in lockstep with the generator + parity-test pins.
P3 #2 — exact-set parity event_times:
_zip_r_python() previously asserted only that R-mapped horizons
were a SUBSET of Python's event_times (missing-in-python check).
Tighten to FULL SET EQUALITY: also reject horizons present in
Python but absent from R's requested set ("extra_in_python"). This
catches future event_study horizon-selection regressions in both
directions — e.g. if our effects/placebo cap drifts and Python
emits an extra row R didn't request.
Stats: 540 tests pass, 0 regressions. Still no estimator changes
— all P3 polish on the parity / repro infrastructure.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent eb27bf5 commit aae3531
2 files changed
Lines changed: 61 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
39 | 75 | | |
40 | 76 | | |
41 | 77 | | |
| |||
52 | 88 | | |
53 | 89 | | |
54 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
55 | 100 | | |
56 | 101 | | |
57 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
0 commit comments