Skip to content

Commit

Permalink
assume vdiffr is always available
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Nov 19, 2024
1 parent 7b1e30f commit 779588a
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion tests/testthat/test-plot.check_dag.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
skip_if_not_installed("vdiffr")
skip_if_not_installed("ggdag")
skip_if_not_installed("dagitty")

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-plot.compare_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test_that("`plot()` for compare_parameters", {
cp <- parameters::compare_parameters(gmod_glmer, gmod_glmmTMB, effects = "random")
expect_warning(plot(cp), "No data left")

skip_if_not_installed("vdiffr")

vdiffr::expect_doppelganger(
title = "plot.compare_parameters works",
fig = plot(cp, show_intercept = TRUE)
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-plot.p_direction.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ skip_if_not_installed("bayestestR", minimum_version = "0.14.1")
skip_if_not_installed("parameters", minimum_version = "0.22.3")

test_that("`plot.see_p_direction` works {parameters}", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("ggridges")

data(qol_cancer, package = "parameters")
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-plot.p_significance.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ skip_if_not_installed("bayestestR", minimum_version = "0.14.1")
skip_if_not_installed("parameters", minimum_version = "0.22.3")

test_that("`plot.see_p_significance works for two thresholds", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("ggridges")

set.seed(123)
Expand All @@ -31,7 +30,6 @@ test_that("`plot.see_p_significance works for two thresholds", {
})

test_that("`plot.see_p_significance works {parameters}}", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("ggridges")

data(qol_cancer, package = "parameters")
Expand Down
5 changes: 1 addition & 4 deletions tests/testthat/test-plot.parameters_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test_that("`plot.see_parameters_model()` works", {
result <- parameters::model_parameters(m)
expect_s3_class(plot(result), "gg")

skip_if_not_installed("vdiffr")

vdiffr::expect_doppelganger(
title = "plot.model_parameters_1",
fig = plot(result)
Expand All @@ -15,7 +15,6 @@ test_that("`plot.see_parameters_model()` works", {
})

test_that("`plot.see_parameters_model()` random parameters works", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("lme4")
skip_if_not_installed("parameters")

Expand Down Expand Up @@ -67,7 +66,6 @@ test_that("`plot.see_parameters_model()` random parameters works", {


test_that("`plot.see_parameters_model()` random parameters works", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("lme4")
skip_if_not_installed("parameters")
data(sleepstudy, package = "lme4")
Expand All @@ -87,7 +85,6 @@ test_that("`plot.see_parameters_model()` random parameters works", {


test_that("`plot.see_parameters_model()` random parameters works", {
skip_if_not_installed("vdiffr")
skip_if_not_installed("mgcv")
skip_if_not_installed("parameters")

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-plot.simulate_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ skip_on_cran()
skip_if_offline()
skip_if_not_installed("mclogit")
skip_if_not_installed("parameters")
skip_if_not_installed("vdiffr")


test_that("`plot()` for simulate_parameters", {
pict <- base::readRDS(url("https://slcladal.github.io/data/pict.rda", "rb"))
Expand Down

0 comments on commit 779588a

Please sign in to comment.