Skip to content

Move check-functions into own R file, refactor longer checks into separate functions - #662

Merged
strengejacke merged 1 commit into
mainfrom
refactor_checks
Sep 11, 2026
Merged

strengejacke merged 1 commit into
mainfrom
refactor_checks

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

No unresolved review issues were identified.

Pull request overview

This PR moves internal check functions into R/checks.R, updates their callers, and reformats HTML printing.

Changes:

  • Centralizes validation and warning helpers.
  • Updates affected functions to use shared checks.
  • Reformats print_html().
File summaries
File Reviewed change
R/utils.R Removes relocated helpers.
R/print_html.R Reformats HTML printing and removes moved logic.
R/get_marginaltrends.R Uses the extracted trend validator.
R/get_marginalmeans.R Uses centralized checks.
R/get_marginaleffects_type.R Uses the extracted prediction validator.
R/get_marginalcontrasts.R Uses the shared filtering helper.
R/get_inequalitycontrasts.R Removes the relocated helper.
R/checks.R Adds centralized check helpers.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@strengejacke

Copy link
Copy Markdown
Member Author

All local checks pass

@strengejacke
strengejacke merged commit 577fc24 into main Sep 11, 2026
13 of 21 checks passed
@strengejacke
strengejacke deleted the refactor_checks branch September 11, 2026 08:03
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