Skip to content

Potential issue for R 4.3.0 #6560

@Yunuuuu

Description

@Yunuuuu

I'm studying the ggplot2 source code and came across the following lines:

In
https://github.com/tidyverse/ggplot2/blob/main/R/plot-construction.R:

if (getRversion() < "4.3.0") {
  S7::method(`+`, list(class_S3_gg, S7::class_any)) <- add_gg
}

and in https://github.com/tidyverse/ggplot2/blob/main/R/zzz.R:

on_load(
  if (getRversion() > "4.3.0") registerS3method("+", "gg", add_gg)
)

It looks like there’s no method registration for exactly R 4.3.0. Is that intentional, or should it also be handled explicitly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions