Skip to content

Commit d843c76

Browse files
committed
skip_if_not_installed(vdiffr) in ppc-censoring tests
1 parent 679a254 commit d843c76

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

R/bayesplot-ggplot-themes.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ theme_default <-
129129
#' bayesplot_theme_set(theme_dark())
130130
#' mcmc_hist(x) + panel_bg(fill = "black")
131131
#'
132+
#' # reset
133+
#' bayesplot_theme_set()
134+
#'
132135
bayesplot_theme_get <- function() {
133136
if (!identical(.bayesplot_theme_env$gg_current, ggplot2::theme_get())) {
134137
.bayesplot_theme_env$current <- ggplot2::theme_get()

tests/testthat/test-ppc-censoring.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ test_that("ppc_km_overlay renders correctly", {
4747

4848
test_that("ppc_km_overlay_grouped renders correctly", {
4949
testthat::skip_on_cran()
50+
testthat::skip_if_not_installed("vdiffr")
5051
skip_if_not_installed("ggfortify")
5152

5253
p_base <- ppc_km_overlay_grouped(vdiff_y2, vdiff_yrep2, vdiff_group2,

0 commit comments

Comments
 (0)