Skip to content

Testing ggplot labels #355

@teunbrand

Description

@teunbrand

Hi there,

We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check.
The issue is described in tidyverse/ggplot2#6505, where you're welcome to raise discussion.
Essentially the issue is follow-up on #337, where the following test no longer holds:

if ("get_labs" %in% getNamespaceExports("ggplot2")) {
ll <- ggplot2::get_labs(g2)
} else {
ll <- g2$labels
}
expect_true(all(c("xmin", "xmax", "ymin", "ymax") %in% names(ll)))

This is because ggplot2 now tosses out unused labels, so none of these names are present anymore. I apologise for now getting this right the first time! I think the best course of action is just remove this part of the test, but if it actually tests behaviour in your code, perhaps it could be changed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions