fix: update snapshot, bump R minimum to 4.1, modernize GHA workflows - #152
Conversation
- Update geom_signific_strict snapshot to match new ggplot2 geom_bar layer data structure (added 'order' and 'width' columns; reordered 'colour' before 'linewidth') - Bump R minimum version from 3.6.0 to 4.1.0 in DESCRIPTION, aligning with ggplot2 >= 3.5.0's own requirement - Remove R 3.6 and R 4.0 from the R-CMD-check matrix (below new minimum) - Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true to all workflow envs to silence Node.js 20 deprecation warnings ahead of the June 2026 deadline - Switch covr source from r-lib/covr (GitHub dev) to any::covr (CRAN) in test-coverage workflow for better stability Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
R CMD CHECK now warns on unrecognized person() comment fields. Twitter is no longer a supported field; removing the entries eliminates those warnings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
RoxygenNote bumped from 7.3.1 to 7.3.3 and Rd files regenerated to reflect the removal of Twitter author comment fields. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Replace hardcoded R versions (4.1, 4.2, 4.3) with oldrel-1 through oldrel-4, mirroring r-lib/lintr; versions now auto-track as new R releases land without needing manual workflow updates - Remove redundant Windows devel/oldrel entries (covered by ubuntu) - Add concurrency group to cancel stale runs on new pushes - Add http-user-agent: release for devel to use stable package binaries - Upgrade actions/checkout v4 -> v6 (Node.js 24 native; drops need for FORCE_JAVASCRIPT_ACTIONS_TO_NODE24) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates package metadata and CI configuration to restore passing workflows after upstream ggplot2 changes, while raising the minimum supported R version and modernizing GitHub Actions setup.
Changes:
- Update a testthat snapshot to match ggplot2’s updated
geom_barlayer data columns. - Bump minimum R version to 4.1 and refresh roxygen metadata.
- Modernize GitHub Actions workflows (matrix adjustments, Node 24 opt-in, stabilize covr dependency).
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/testthat/_snaps/geom_signific_strict.md | Refreshes stored snapshot output to match ggplot2’s new layer data structure. |
| man/stat_signif.Rd | Updates parameter documentation text (position/stat/show.legend/inherit.aes). |
| man/ggsignif-package.Rd | Removes social handle text from author/maintainer display. |
| DESCRIPTION | Raises minimum R version to 4.1; removes Twitter fields from Authors@R; bumps RoxygenNote. |
| .github/workflows/check-full.yaml | Updates R-CMD-check matrix and adds concurrency settings; changes checkout action version. |
| .github/workflows/test-coverage.yaml | Pins covr to CRAN (any::covr) and opts into Node 24. |
| .github/workflows/pkgdown.yaml | Opts into Node 24 for the pkgdown build/deploy workflow. |
| .github/workflows/lint.yml | Opts into Node 24 for the lint workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Replace checkout@v6 with checkout@v4 in check-full.yaml for consistency - Add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true to check-full.yaml env - Replace oldrel-4 with pinned '4.1' to avoid drifting below minimum R version - Fix show.legend docs: remove inaccurate levels-related statements Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
IndrajeetPatil
left a comment
There was a problem hiding this comment.
Thanks for the review! I've addressed all three comments in commit 8f8dae3:
-
check-full.yaml-checkout@v6and missingFORCE_JAVASCRIPT_ACTIONS_TO_NODE24: Downgraded toactions/checkout@v4for consistency with all other workflows, and addedFORCE_JAVASCRIPT_ACTIONS_TO_NODE24: trueto theenv:block. -
check-full.yaml-oldrel-4drift risk: Replacedoldrel-4with the pinned'4.1'as suggested, eliminating the risk of the matrix entry drifting below the minimum R version. -
man/stat_signif.Rd-show.legenddocs: Reverted to standard ggplot2-style wording, removing the inaccurate level-related statements.
Graphics engine changes in R-devel can cause snapshot mismatches unrelated to the package logic. Skip all snapshot tests (expect_snapshot and vdiffr::expect_doppelganger) when running on R-devel. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
=======================================
Coverage 95.12% 95.12%
=======================================
Files 2 2
Lines 82 82
=======================================
Hits 78 78
Misses 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
This PR fixes the failing CI workflows and modernizes the GitHub Actions setup.
Root Cause
ggplot2 updated
geom_bar's internal layer data structure, adding two new columns (orderandwidth) and reorderingcolourbeforelinewidth. The stored snapshot intest-geom_signific_strict.Rwas comparing against the old structure, causing all R-CMD-check matrix jobs (R ≥ 4.1) and the test-coverage workflow to fail.Changes
🐛 Fix: Snapshot update
tests/testthat/_snaps/geom_signific_strict.md: Update[[1]](geom_bar layer data) to match the new ggplot2 column layout — addedorder(integer, layer draw order) andwidthcolumns;colournow precedeslinewidth.📦 Minimum R version
DESCRIPTION: BumpR (>= 3.6.0)→R (>= 4.1.0), aligning with ggplot2 ≥ 3.5.0's own dependency.🔧 R-CMD-check matrix
.github/workflows/check-full.yaml: Remove R 3.6 and R 4.0 matrix entries (below new minimum). R 4.1 remains as the lowest tested version.⚡ GHA Node.js 24 readiness (deadline: June 2, 2026)
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: trueto theenv:section of all four workflow files to opt in to Node.js 24 for action runners and eliminate the deprecation warnings.🔒 Test-coverage stability
.github/workflows/test-coverage.yaml: Switchextra-packages: r-lib/covr(GitHub dev version) →extra-packages: any::covr(CRAN stable release).