-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Description
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
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior