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 4
4
# ' @export
5
5
zeroGrob <- function () .zeroGrob
6
6
7
- .zeroGrob <- grob(cl = " zeroGrob" , name = " NULL" )
7
+ # Will get assigned in .onLoad()
8
+ .zeroGrob <- NULL
9
+
8
10
# ' @export
9
11
# ' @method widthDetails zeroGrob
10
12
widthDetails.zeroGrob <- function (x ) unit(0 , " cm" )
Original file line number Diff line number Diff line change 1
1
# ' @include theme-defaults.r
2
2
# ' @include theme-elements.r
3
- ggplot_global $ theme_current <- theme_gray()
3
+ NULL
4
4
5
5
# ' Get, set, and modify the active theme
6
6
# '
Original file line number Diff line number Diff line change 19
19
.onLoad <- function (... ) {
20
20
backport_unit_methods()
21
21
22
+ .zeroGrob <<- grob(cl = " zeroGrob" , name = " NULL" )
23
+
24
+ ggplot_global $ theme_current <- theme_gray()
25
+
22
26
# To avoid namespace clash with dplyr.
23
27
# It seems surprising that this hack works
24
28
if (requireNamespace(" dplyr" , quietly = TRUE )) {
You can’t perform that action at this time.
0 commit comments