Skip to content

Compatibility ggplot2 4.0.0#40

Closed
teunbrand wants to merge 17 commits intotidymodels:developfrom
teunbrand:ggplot2_360
Closed

Compatibility ggplot2 4.0.0#40
teunbrand wants to merge 17 commits intotidymodels:developfrom
teunbrand:ggplot2_360

Conversation

@teunbrand
Copy link

Hi tidymodels team,

Apologies for not posting an issue first.
The ggplot2 package is planning an update for around May 2025 and a reverse dependency test identified a problem with the applicable package.
The details are explained in tidyverse/ggplot2#6290, but essentially ggplot2 doesn't populate the plot$labels field before plot building anymore, which violates some test assumptions in this package.

This PR changes the tests to be compatible with both versions of ggplot2.
You can test the changes yourself with the development version of ggplot2 (pak::pak("tidyverse/ggplot2"))

Best,
Teun

@teunbrand teunbrand changed the title Compatibility ggplot2 3.6.0 Compatibility ggplot2 4.0.0 Jun 13, 2025
@teunbrand
Copy link
Author

This is just a small reminder. We aim to release ggplot2 soon, in about 2 weeks. We hope that a fix can be submitted to CRAN around that time.

Similar issues are being tracked in tidyverse/ggplot2#6505.

Cheers

topepo and others added 3 commits February 16, 2026 17:44
* pkgdown and GHA updates

* usethis::use_tidy_style()

* usethis::use_tidy_description()

* regenerate snapshots with newer rlang

* rstudio -> posit, fix urls

* re-regenerate snapshots

* move imports to package docs

* udpate testthat and other pkg version

* update imports

* retrigger checks

* update GHA

---------

Co-authored-by: Marly Gotti <marlygotti@gmail.com>
Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>
@topepo topepo changed the base branch from main to develop February 17, 2026 01:19
@topepo
Copy link
Member

topepo commented Feb 17, 2026

The main and develop branches are far out of sync. I'll close this, then replicate the changes in a new PR (based on develop). Thanks!

@topepo topepo closed this Feb 17, 2026
topepo pushed a commit that referenced this pull request Feb 17, 2026
@topepo topepo mentioned this pull request Feb 17, 2026
topepo added a commit that referenced this pull request Feb 17, 2026
* updates from #40

* update docs and snapshots

---------

Co-authored-by: ‘topepo’ <‘mxkuhn@gmail.com’>
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.

3 participants