We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba86b9d commit 71da78cCopy full SHA for 71da78c
1 file changed
tests/testthat/test-ggplot-hline.R
@@ -68,7 +68,9 @@ test_that("hline/vline/abline split on linetype/colour/size", {
68
69
expect_equivalent(
70
unique(vapply(l$data, function(x) x$line$color, character(1))),
71
- c("rgba(0,0,0,1)", "rgba(255,0,0,1)", "rgba(0,205,0,1)")
+ # Default palette colors are changing in R4.0...
72
+ # https://github.com/wch/r-source/commit/58eafa7#diff-038aeefcb87409db883f064615187949R2495
73
+ toRGB(if (getRversion() >= "4.0.0") c("black", "#DF536B", "#61D04F") else c("black", "red", "green3"))
74
)
75
76
expect_length(
0 commit comments