Package: r-cran-bayesplot / 1.8.0-1

exclude_failing_test.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 15 Jan 2021 08:48:32 +0100
Description: Skip following test
 ── Error (test-ppc-distributions.R:17:3): ppc_km_overlay returns a ggplot object ──
 Error: Package 'ggfortify' required.
 Backtrace:
  1. ├─bayesplot:::expect_gg(...) test-ppc-distributions.R:17:2
  2. │ └─testthat::expect_s3_class(x, "ggplot")
  3. │   └─testthat::quasi_label(enquo(object), arg = "object")
  4. │     └─rlang::eval_bare(expr, quo_get_env(quo))
  5. └─bayesplot::ppc_km_overlay(...)
 .
 [ FAIL 1 | WARN 0 | SKIP 40 | PASS 1019 ]

--- a/tests/testthat/test-ppc-distributions.R
+++ b/tests/testthat/test-ppc-distributions.R
@@ -13,11 +13,6 @@ test_that("ppc_ecdf_overlay returns a gg
   expect_gg(ppc_ecdf_overlay(y2, yrep2))
 })
 
-test_that("ppc_km_overlay returns a ggplot object", {
-  expect_gg(ppc_km_overlay(y, yrep, status_y = status_y, size = 0.5, alpha = 0.2))
-  expect_gg(ppc_km_overlay(y2, yrep2, status_y = status_y2))
-})
-
 test_that("ppc_dens,pp_hist,ppc_freqpoly,ppc_boxplot return ggplot objects", {
   expect_gg(ppc_hist(y, yrep[1,, drop = FALSE]))
   expect_gg(ppc_hist(y, yrep[1:8, ]))