Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guide_level() compatibility with ggplot2 >3.4.2 #92

Merged
merged 5 commits into from
Aug 29, 2023
Merged

guide_level() compatibility with ggplot2 >3.4.2 #92

merged 5 commits into from
Aug 29, 2023

Conversation

teunbrand
Copy link
Contributor

Hello Mitchell,

Apologies for the cold PR without posting an issue first.
The ggplot2 package has changed the implementation of the guide system, which means that the old S3 system will no longer work, see ggplot2's news file. I'm aware that graphics functionality in distributional is scheduled to be deprecated, per here, but there are packages that reexport the guide functionality.

In any case, what this PR does is to create a hybrid of guide_level() that should be compatible with the old system and the new system to ease transition. It is work in progress (WIP) for now, as I'm doing an inventory of how to preserve as many S3 guide extensions as is reasonable.

Best,
Teun

@teunbrand teunbrand changed the title WIP: guide_level() compatibility with ggplot2 >3.4.0 WIP: guide_level() compatibility with ggplot2 >3.4.2 Jul 2, 2023
@teunbrand teunbrand marked this pull request as ready for review August 28, 2023 17:03
@teunbrand teunbrand changed the title WIP: guide_level() compatibility with ggplot2 >3.4.2 guide_level() compatibility with ggplot2 >3.4.2 Aug 28, 2023
@teunbrand
Copy link
Contributor Author

This should now be compatible with CRAN and development version of ggplot2

Copy link
Owner

@mitchelloharawild mitchelloharawild left a comment

Choose a reason for hiding this comment

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

Thanks for this.

@mitchelloharawild mitchelloharawild merged commit 73c9b07 into mitchelloharawild:master Aug 29, 2023
@teunbrand teunbrand deleted the guide_compat branch August 30, 2023 05:25
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