File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 44# ' @export
55zeroGrob <- function () .zeroGrob
66
7- .zeroGrob <- grob(cl = " zeroGrob" , name = " NULL" )
7+ # Will get assigned in .onLoad()
8+ .zeroGrob <- NULL
9+
810# ' @export
911# ' @method widthDetails zeroGrob
1012widthDetails.zeroGrob <- function (x ) unit(0 , " cm" )
Original file line number Diff line number Diff line change 11# ' @include theme-defaults.r
22# ' @include theme-elements.r
3- ggplot_global $ theme_current <- theme_gray()
3+ NULL
44
55# ' Get, set, and modify the active theme
66# '
Original file line number Diff line number Diff line change 1919.onLoad <- function (... ) {
2020 backport_unit_methods()
2121
22+ .zeroGrob <<- grob(cl = " zeroGrob" , name = " NULL" )
23+
24+ ggplot_global $ theme_current <- theme_gray()
25+
2226 # To avoid namespace clash with dplyr.
2327 # It seems surprising that this hack works
2428 if (requireNamespace(" dplyr" , quietly = TRUE )) {
You can’t perform that action at this time.
0 commit comments