gadenbuie / xaringanthemer

😎 Give your xaringan slides some style
https://pkg.garrickadenbuie.com/xaringanthemer/
Other
445 stars 28 forks source link

Compatibility with future ggplot2 #79

Closed teunbrand closed 1 month ago

teunbrand commented 6 months ago

Hi Garrick,

In ggplot2, we've made updates to update_geom_defaults() (https://github.com/tidyverse/ggplot2/pull/5781) that turned out to be incompatible with {xaringanthemer}. The issue stems from theme_xaringan_restore_defaults() where the old_ggplot_defaults cache became invalid due to having both spellings of colour and color. This is prevented by using colour as ggplot2 uses internally.

Feel free to test out with the development branch of ggplot2:

pak::pak("tidyverse/ggplot2")

Our plans for the next release of ggplot2 are still very far away, so there is no hurry in this.