Skip to content

Commit a660093

Browse files
teunbrandwch
andauthored
Compatibility with ggplot2 4.0.0 (#4226)
* add S7 class method * Update tests/testthat/test-plot-coordmap.R --------- Co-authored-by: Winston Chang <[email protected]>
1 parent eac0eea commit a660093

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/testthat/test-plot-coordmap.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ sortList <- function(x) {
66
}
77

88
# This will create print.ggplot in the current environment
9-
print.ggplot <- custom_print.ggplot
9+
# print.ggplot is for ggplot2 < 4.0.0
10+
# print.ggplot2::ggplot is for ggplot2 >= 4.0.0
11+
print.ggplot <- `print.ggplot2::ggplot` <- custom_print.ggplot
1012

1113

1214
test_that("ggplot coordmap", {

0 commit comments

Comments
 (0)