Post #2073414
2026-04-25 08:11 UTC
#RStats Possibly solved with getExportedValue:
```
if (utils::packageVersion("ggplot2") >= "4.0.0") {
elem_geom = getExportedValue(ns = "ggplot2", name = "element_geom")
} else {
elem_geom <- NULL
}
foo <- ggplot2::theme(…., geom = elem_geom, …)
```
This seems reasonable to me and passes check on the versions I've tried so far. Can't yet promise CRAN will approve…
Replies (0)
No replies.