We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 291cd7e commit 8406115Copy full SHA for 8406115
R/zzz.r
@@ -16,9 +16,21 @@
16
})
17
}
18
19
+# Assigning pathGrob in .onLoad ensures that packages that subclass GeomPolygon
20
+# do not install with error `possible error in 'pathGrob(munched$x, munched$y, ':
21
+# unused argument (pathId = munched$group)` despite the fact that this is correct
22
+# usage
23
+pathGrob <- NULL
24
+
25
.onLoad <- function(...) {
26
backport_unit_methods()
27
28
+ if (getRversion() < as.numeric_version("3.6")) {
29
+ pathGrob <<- function(..., pathId.lengths) {
30
+ grid::pathGrob(...)
31
+ }
32
33
34
.zeroGrob <<- grob(cl = "zeroGrob", name = "NULL")
35
36
ggplot_global$theme_current <- theme_gray()
0 commit comments