Skip to content

Commit 319b0b2

Browse files
committed
suppress warnings from rstanarm in test
[ci skip]
1 parent e2cc429 commit 319b0b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-helpers-mcmc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ test_that("prepare_mcmc_array processes non-array input types correctly", {
237237

238238
# object with acceptable as.array method
239239
suppressPackageStartupMessages(library(rstanarm))
240-
fit <- stan_glm(mpg ~ wt, data = mtcars, chains = 2, iter = 500, refresh = 0)
240+
fit <- suppressWarnings(stan_glm(mpg ~ wt, data = mtcars, chains = 2, iter = 500, refresh = 0))
241241
a4 <- prepare_mcmc_array(fit)
242242
expect_s3_class(a4, "mcmc_array")
243243
expect_equal(a4, prepare_mcmc_array(as.array(fit)))

0 commit comments

Comments
 (0)