Skip to content

Commit e257fb2

Browse files
authored
Merge pull request #269 from billdenney/test-ggfortify
Require ggfortify for some tests
2 parents ecb1676 + 96105e2 commit e257fb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-ppc-distributions.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ test_that("ppc_ecdf_overlay returns a ggplot object", {
1414
})
1515

1616
test_that("ppc_km_overlay returns a ggplot object", {
17+
skip_if_not_installed("ggfortify")
1718
expect_gg(ppc_km_overlay(y, yrep, status_y = status_y, size = 0.5, alpha = 0.2))
1819
expect_gg(ppc_km_overlay(y2, yrep2, status_y = status_y2))
1920
})
@@ -155,6 +156,7 @@ test_that("ppc_ecdf_overlay_grouped renders correctly", {
155156
test_that("ppc_km_overlay renders correctly", {
156157
testthat::skip_on_cran()
157158
testthat::skip_if_not_installed("vdiffr")
159+
testthat::skip_if_not_installed("ggfortify")
158160

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

0 commit comments

Comments
 (0)