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

Use ggdist::ramp_colours in ggdist > 3.3.1 #397

Merged
merged 1 commit into from
Mar 2, 2024

Conversation

mjskay
Copy link
Contributor

@mjskay mjskay commented Feb 24, 2024

Hi @mitchelloharawild --- I am preparing to make a new release of {ggdist} this week, partly to fix some minor issues due to the new release of {ggplot2}. During revdep checks I found a minor issue in {fabletools}.

As I am sure you discovered, colour ramps produced by {ggdist} were previously just a list type with attributes, and the method for applying them was not exported. The new version of {ggdist} now uses a proper datatype to represent partial colour ramps produced by the colour_ramp and fill_ramp scales, and exports a function, ggdist::ramp_colours(), for applying them. As a result, the old approach for translating colour ramps into colour no longer works and needs to be updated here, which this PR does.

@mjskay
Copy link
Contributor Author

mjskay commented Mar 2, 2024

@mitchelloharawild pinging again --- I'd like to do a CRAN submission soon on this, ideally in the next week, because I don't want to leave some parts of {ggdist} not working properly in the CRAN version. When that happens I believe some {fabletools} tests will break on CRAN unless this issue is fixed.

@mitchelloharawild mitchelloharawild merged commit 2717ced into tidyverts:master Mar 2, 2024
@mitchelloharawild
Copy link
Member

Thanks for the bump, I'll prepare a CRAN patch asap.

@mjskay
Copy link
Contributor Author

mjskay commented Mar 2, 2024

Thanks much!

@mjskay mjskay deleted the fill_ramp branch March 2, 2024 05:04
@mitchelloharawild
Copy link
Member

On CRAN now 🎉

@mjskay
Copy link
Contributor Author

mjskay commented Mar 2, 2024

Sweet, thanks for the quick response! 🎉

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