Skip to content

Commit a5756a8

Browse files
committed
damn me and my stupid decisions sometimes
1 parent eae4374 commit a5756a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/plot-build.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ S7::method(ggplot_build, class_ggplot_built) <- function(plot, ...) {
3737
plot # This is a no-op
3838
}
3939

40-
S7::method(ggplot_build, class_ggplot) <- function(plot, ...) {
40+
# The build_ggplot is a temporary concession to {thematic} after we put in
41+
# a compatibility PR that uses this function
42+
build_ggplot <- S7::method(ggplot_build, class_ggplot) <- function(plot, ...) {
4143
plot <- plot_clone(plot)
4244
if (length(plot@layers) == 0) {
4345
plot <- plot + geom_blank()

0 commit comments

Comments
 (0)