Skip to content

Various fixes + ggplot2 4.0.0 compatibility#53

Merged
malcolmbarrett merged 17 commits into
mainfrom
bugs
Nov 4, 2025
Merged

Various fixes + ggplot2 4.0.0 compatibility#53
malcolmbarrett merged 17 commits into
mainfrom
bugs

Conversation

@malcolmbarrett

Copy link
Copy Markdown
Member

this PR addresses various issues found while working with recently developed tools while polishing the balance chapter. It relatedly addresses ggplot2 4.0.0 compatibility

Closes #52

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.

Pull Request Overview

This PR performs a systematic refactoring to standardize parameter naming across the halfmoon package's testing suite. The main changes include:

  • Renaming .group parameter to .exposure in ESS-related functions
  • Renaming treatment_level parameter to .focal_level across calibration and ROC functions
  • Updating comment references to reflect the new parameter names
  • Removing a test assertion for coordinate system type in ROC plots
  • Adding pipeline operators and na.omit() call for y-axis label processing
  • Adding new test coverage for facet_scales parameter functionality
  • Updating SVG snapshot files to reflect changes in plot rendering (axis scales and positioning)

Reviewed Changes

Copilot reviewed 42 out of 82 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test-plot_roc.R Removed coordinate system test assertion
test-plot_qq.R Updated comment from treatment_level to .focal_level
test-plot_mirror_distributions.R Added pipeline operators for y-label processing; added new facet_scales tests
test-plot_ess.R Changed .group to .exposure in function calls
test-plot_calibration.R Updated parameter name and comments from treatment_level to .focal_level
test-geom_calibration.R Updated aesthetic mappings and comments to use new parameter names
test-check_model_auc.R Updated parameter name and comments from treatment_level to .focal_level
test-check_ess.R Changed .group parameter to .exposure throughout
test-check_balance_interactions.R New test file for interaction validation
test-bal_qq.R Updated comments to reference .focal_level
Multiple SVG files Updated snapshots reflecting plot rendering changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/testthat/test-plot_mirror_distributions.R Outdated
Comment thread tests/testthat/test-plot_mirror_distributions.R Outdated

Copilot AI commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

@malcolmbarrett I've opened a new pull request, #54, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

@malcolmbarrett I've opened a new pull request, #55, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 5 commits November 4, 2025 15:46
Co-authored-by: malcolmbarrett <23123711+malcolmbarrett@users.noreply.github.com>
Co-authored-by: malcolmbarrett <23123711+malcolmbarrett@users.noreply.github.com>
Remove redundant numeric conversion in plot_mirror_distributions test
Use explicit namespace for stats::na.omit() in tests
@malcolmbarrett
malcolmbarrett merged commit 7e0193f into main Nov 4, 2025
9 checks passed
@malcolmbarrett
malcolmbarrett deleted the bugs branch November 4, 2025 17:54
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.

The vignette in the readme doesn't seem to work

3 participants