Skip to content

Refactor format.R - #734

Open
strengejacke wants to merge 2 commits into
mainfrom
refactor_codebase
Open

strengejacke wants to merge 2 commits into
mainfrom
refactor_codebase

Conversation

@strengejacke

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes address the identified missing-value handling issue and include targeted regression coverage for offset fallbacks and estimate modes, with no active review issues remaining.

No open issues 🎉

What changed in this PR

Refactors marginal-means grid setup and formatting helpers while fixing offset mean fallbacks for missing values.

Changes:

  • Extracted reusable grid-configuration and formatting helpers.
  • Corrected missing-value handling for offset fallback means.
  • Added regression tests for offset handling and estimate modes.
File Description
tests/​testthat/​test-offset.R Adds regression tests for offset fallback means with missing values.
tests/​testthat/​test-estimate_means_dotargs.R Adds tests for marginal-means arguments across estimate modes.
R/​utils_datagrid.R Adds reusable grid-argument configuration and fixes offset fallback handling.
R/​get_marginalmeans.R Uses the extracted marginal-means grid configuration helper.
R/​format.R Extracts formatting, contrast parsing, and infinite-column removal helpers.

Review effort: Lite

This branch has not been deployed

No deployments
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.

2 participants