Skip to content

Tests break with upcoming ggplot2 version #97

@teunbrand

Description

@teunbrand

Hi there,

I apologise for ignoring your preformatted issue template.
We've been preparing a new major release for ggplot2 and found an issue during a reverse dependency check.
The issue occurs in tests like the one indicated below:

expect_named(
first_layer,
c(
"x", "y", "time", "survival", "n.risk", "n.censor", "n.event",
"PANEL", "group", "shape", "colour", "size", "alpha",
"stroke", "fill"
)
)

The order of the columns of layer data is not guaranteed and it is even possible that we add more columns in some cases. Such changes may not break your plot, but will break this test. We recommend you choose another testing strategy not relying on internal structures of ggplot to ensure the correctness of your code.

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 an update to CRAN around that time. Hopefully this will inform you in a timely manner.

Best wishes,
Teun

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions