Skip to content

Commit 6f4ed20

Browse files
authored
Merge pull request #356 from stan-dev/fix-test-for-ggplot2-update
Removes a test that will fail with next ggplot2 release
2 parents 8b07034 + 56e32be commit 6f4ed20

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

R/mcmc-distributions.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ mcmc_violin <- function(
472472
}
473473
}
474474

475-
geom_args <- list(size = 0.5, na.rm = TRUE, alpha = alpha)
475+
geom_args <- list(linewidth = 0.5, na.rm = TRUE, alpha = alpha)
476476
if (violin) {
477477
geom_args[["draw_quantiles"]] <- probs
478478
} else {

tests/testthat/test-mcmc-traces.R

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@ test_that("mcmc_trace options work", {
4949
expect_gg(g1 <- mcmc_trace(arr, regex_pars = "beta", window = c(5, 10)))
5050
coord <- g1$coordinates
5151
expect_equal(g1$coordinates$limits$x, c(5, 10))
52-
53-
expect_gg(g2 <- mcmc_trace(arr, regex_pars = "beta", n_warmup = 10))
54-
if ("get_labs" %in% getNamespaceExports("ggplot2")) {
55-
ll <- ggplot2::get_labs(g2)
56-
} else {
57-
ll <- g2$labels
58-
}
59-
expect_true(all(c("xmin", "xmax", "ymin", "ymax") %in% names(ll)))
60-
6152
expect_error(mcmc_trace(arr, iter1 = -1))
6253
expect_error(mcmc_trace(arr, n_warmup = 50, iter1 = 20))
6354
})

0 commit comments

Comments
 (0)