ggtree icon indicating copy to clipboard operation
ggtree copied to clipboard

Replace `check_linewidth()`

Open teunbrand opened this issue 5 months ago • 0 comments
trafficstars

Hi there,

We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check. The issue is due to accessing ggplot2 internals that aren't meant for public consumption, see also https://www.tidyverse.org/blog/2022/09/playing-on-the-same-team-as-your-dependecy/.

This PR replaces one such instance that will become broken, there are several other instances of this as well. The best practise around this is to copy the internal functions into your own package.

I also noticed a few other warnings popping up that you might want to take a look at. You can test your code with the development version of ggplot2 by installing it as follows:

# install.packages("pak")
pak::pak("tidyverse/ggplot2")

We aim to release the new ggplot2 version in about 2 weeks, and hope you can submit a fix to CRAN around that time. Hopefully this will inform you in a timely manner.

Best wishes, Teun

teunbrand avatar Jun 16 '25 09:06 teunbrand