Skip to content

Commit

Permalink
skip test on newer ggplot2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Jan 18, 2024
1 parent bfc8046 commit e23d917
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-utils_visR.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e23d917

Please sign in to comment.