From e23d91723abe781342f31e61638d4127a962394b Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Thu, 18 Jan 2024 15:58:40 +0100 Subject: [PATCH] skip test on newer ggplot2 version --- tests/testthat/test-utils_visR.R | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testthat/test-utils_visR.R b/tests/testthat/test-utils_visR.R index 3a62d217..85f1d187 100644 --- a/tests/testthat/test-utils_visR.R +++ b/tests/testthat/test-utils_visR.R @@ -92,6 +92,10 @@ testthat::test_that("T1.3 An error when a list containing non-`ggplot` objects i testthat::context("utils_visr - T2. `align_plots()` aligns multiple `ggplot` objects, taking the legend into account.") testthat::test_that("T2.1 Columns are added to the grob-converted plot.", { + # From ggplot2 3.5.0 onwards ggplots have stable gtable dimensions with + # regards to legend placement + skip_if(utils::packageVersion("ggplot2") >= "3.5.0") + gg_sex <- adtte %>% visR::estimate_KM("SEX") %>% visR::visr()