Skip to content

Commit

Permalink
Require ggfortify for some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billdenney committed May 24, 2021
1 parent ecb1676 commit 96105e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-ppc-distributions.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test_that("ppc_ecdf_overlay returns a ggplot object", {
})

test_that("ppc_km_overlay returns a ggplot object", {
skip_if_not_installed("ggfortify")
expect_gg(ppc_km_overlay(y, yrep, status_y = status_y, size = 0.5, alpha = 0.2))
expect_gg(ppc_km_overlay(y2, yrep2, status_y = status_y2))
})
Expand Down Expand Up @@ -155,6 +156,7 @@ test_that("ppc_ecdf_overlay_grouped renders correctly", {
test_that("ppc_km_overlay renders correctly", {
testthat::skip_on_cran()
testthat::skip_if_not_installed("vdiffr")
testthat::skip_if_not_installed("ggfortify")

p_base <- ppc_km_overlay(vdiff_y2, vdiff_yrep2, status_y = vdiff_status_y2)
vdiffr::expect_doppelganger("ppc_km_overlay (default)", p_base)
Expand Down

0 comments on commit 96105e2

Please sign in to comment.