Skip to content

Dedupe beta-coefficients and logistic-regression column metadata - #32

Merged
yulric merged 2 commits into
mainfrom
column-metadata-refactor
Jun 9, 2026
Merged

Dedupe beta-coefficients and logistic-regression column metadata#32
yulric merged 2 commits into
mainfrom
column-metadata-refactor

Conversation

@yulric

@yulric yulric commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Collapse the duplicated variable/coefficient/type rows for beta-coefficients and logistic-regression in inst/metadata/column-metadata.csv into single rows using a semicolon-separated fileName (e.g. beta-coefficients;logistic-regression).
  • Add .matches_file_type() helper in R/validate-model-paramater-file.R so the multi-value fileName convention is handled in one place.
  • Update all three consumers (validate-model-paramater-file.R, create-reference-Rmd.R, create-Rmd-table.R) to use the helper.
  • Scope is intentionally limited to beta-coefficients/logistic-regression. The same pattern can later be applied to other duplicated rows and to column-category.csv.

Test plan

  • testthat::test_local(filter = "validate") — both validate tests pass, including the one exercising a beta-coefficients file.
  • Manual check: lookups for both beta-coefficients and logistic-regression return the merged rows; unrelated lookups (e.g. variables) are unaffected.
  • Spot-check the generated reference Rmd for the two file types still renders.

🤖 Generated with Claude Code

yulric and others added 2 commits June 9, 2026 10:41
…gression

The two file types share the same three columns (variable, coefficient, type)
so their rows in column-metadata.csv are now merged using a semicolon-separated
fileName (e.g. "beta-coefficients;logistic-regression").

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Older Quarto versions (1.3.x) don't propagate renv's R_LIBS_* env vars to
post-render Rscript subprocesses, don't fire post-render hooks for
file-less renders used by the generate-llms-md tests, and don't propagate
post-render script errors as non-zero exit codes. Pinning a floor surfaces
these incompatibilities at render time instead of as mysterious test
failures.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@yulric
yulric force-pushed the column-metadata-refactor branch from 582919a to e16f3ab Compare June 9, 2026 14:42
@yulric
yulric merged commit 2dc7748 into main Jun 9, 2026
1 check passed
@yulric
yulric deleted the column-metadata-refactor branch June 9, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant