Skip to content

Commit b99fcec

Browse files
Skip when missing gridExtra
1 parent d523792 commit b99fcec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-mcmc-scatter-and-parcoord.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ test_that("mcmc_hex throws error if number of parameters is not 2", {
6565

6666
# mcmc_pairs -------------------------------------------------------------
6767
test_that("mcmc_pairs returns a bayesplot_grid object", {
68+
skip_if_not_installed("gridExtra")
6869
g <- mcmc_pairs(arr, pars = c("(Intercept)", "sigma"))
6970
expect_bayesplot_grid(g)
7071
expect_equal(print(g), plot(g))
@@ -88,6 +89,7 @@ test_that("mcmc_pairs using hexbin works", {
8889
})
8990

9091
test_that("no mcmc_pairs non-NUTS 'condition's fail", {
92+
skip_if_not_installed("gridExtra")
9193
expect_bayesplot_grid(
9294
mcmc_pairs(arr, pars = "sigma", regex_pars = "beta",
9395
condition = pairs_condition(chains = list(1, 2:4)))

0 commit comments

Comments
 (0)