Running ‘testthat.R’ [105s/113s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(basket)
  > 
  > test_check("basket")
  ── 1. Error: (unknown) (@test-exact.r#13)  ─────────────────────────────────────
  dim(X) must have a positive length
  Backtrace:
   1. basket::mem_exact(...)
   2. base::apply(mod_i, MARGIN = 1, FUN = mem_prior, mod_mat, prior_inclusion)
  
  ── 2. Error: (unknown) (@test-mcmc.r#74)  ──────────────────────────────────────
  Assigned data `x$p0` must be compatible with existing data.
  ✖ Existing data has 300000 rows.
  ✖ Assigned data has 3 rows.
  ℹ Only vectors of size 1 are recycled.
  Backtrace:
    1. testthat::expect_true(...)
    6. basket:::plot_density.mem(mcmc_res1$basket)
    8. tibble:::`$<-.tbl_df`(...)
    9. tibble:::tbl_subassign(...)
   10. tibble:::vectbl_recycle_rhs(...)
   11. base::tryCatch(...)
   12. base:::tryCatchList(expr, classes, parentenv, handlers)
   13. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14. value[[3L]](cond)
  
  ── 3. Error: (unknown) (@test-plot.r#16)  ──────────────────────────────────────
  Assigned data `x$p0` must be compatible with existing data.
  ✖ Existing data has 600000 rows.
  ✖ Assigned data has 6 rows.
  ℹ Only vectors of size 1 are recycled.
  Backtrace:
    1. testthat::expect_true(inherits(plot_density(mh1), "ggplot"))
    6. basket:::plot_density.exchangeability_model(mh1)
    7. base::lapply(ps, function(pt) plot_density(x[[pt]]))
    8. basket:::FUN(X[[i]], ...)
   10. basket:::plot_density.mem(x[[pt]])
   12. tibble:::`$<-.tbl_df`(...)
   13. tibble:::tbl_subassign(...)
   14. tibble:::vectbl_recycle_rhs(...)
   15. base::tryCatch(...)
   16. base:::tryCatchList(expr, classes, parentenv, handlers)
   17. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   18. value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 19 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: (unknown) (@test-exact.r#13) 
  2. Error: (unknown) (@test-mcmc.r#74) 
  3. Error: (unknown) (@test-plot.r#16) 
  
  Error: testthat unit tests failed
  Execution halted