Running ‘testthat.R’ [21s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (require(testthat, quietly = TRUE)) {
  +   require(bartCause)
  +   test_check("bartCause")
  + } else {
  +   cat("package 'testthat' not available; cannot run unit tests\n")
  + }
  Loading required package: bartCause
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 251 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (???): sd common support diagnostic works ─────────────────────────────
  Error in `dbarts::rbart_vi(z ~ V1 + V2 + V3, data = df, verbose = FALSE, 
      group.by = structure(c(1L, 3L, 3L, 2L, 2L, 3L, 3L, 2L, 1L, 
      2L, 1L, 1L, 1L, 3L, 2L, 3L, 3L, 1L, 1L, 2L, 3L, 2L, 2L, 2L, 
      3L, 3L, 1L, 2L, 1L, 3L, 1L, 3L, 2L, 3L, 2L, 3L, 3L, 1L, 1L, 
      1L, 2L, 1L, 1L, 1L, 1L, 3L, 1L, 3L, 1L, 2L, 1L, 2L, 2L, 3L, 
      3L, 2L, 1L, 1L, 2L, 2L, 3L, 1L, 3L, 2L, 1L, 2L, 2L, 3L, 2L, 
      2L, 1L, 3L, 3L, 1L, 3L, 2L, 2L, 1L, 1L, 1L, 1L, 3L, 1L, 3L, 
      3L, 2L, 2L, 2L, 3L, 1L, 1L, 1L, 1L, 2L, 1L, 2L, 1L, 2L, 3L, 
      3L), levels = c("1", "2", "3"), class = "factor"), n.burn = 0L, 
      n.samples = 3L, n.trees = 7L, n.chains = 1L, n.threads = 1L)`: no posterior draws will be taken after thinning
  Backtrace:
      ▆
   1. └─bartCause:::getBartTreatmentFit(...)
   2.   └─base::eval(bartCall, envir = evalEnv)
   3.     └─base::eval(bartCall, envir = evalEnv)
   4.       └─dbarts::rbart_vi(...)
  ── Error (???): chisq common support diagnostic works ──────────────────────────
  Error in `dbarts::rbart_vi(z ~ V1 + V2 + V3, data = df, verbose = FALSE, 
      group.by = structure(c(1L, 3L, 3L, 2L, 2L, 3L, 3L, 2L, 1L, 
      2L, 1L, 1L, 1L, 3L, 2L, 3L, 3L, 1L, 1L, 2L, 3L, 2L, 2L, 2L, 
      3L, 3L, 1L, 2L, 1L, 3L, 1L, 3L, 2L, 3L, 2L, 3L, 3L, 1L, 1L, 
      1L, 2L, 1L, 1L, 1L, 1L, 3L, 1L, 3L, 1L, 2L, 1L, 2L, 2L, 3L, 
      3L, 2L, 1L, 1L, 2L, 2L, 3L, 1L, 3L, 2L, 1L, 2L, 2L, 3L, 2L, 
      2L, 1L, 3L, 3L, 1L, 3L, 2L, 2L, 1L, 1L, 1L, 1L, 3L, 1L, 3L, 
      3L, 2L, 2L, 2L, 3L, 1L, 1L, 1L, 1L, 2L, 1L, 2L, 1L, 2L, 3L, 
      3L), levels = c("1", "2", "3"), class = "factor"), n.burn = 0L, 
      n.samples = 3L, n.trees = 7L, n.chains = 1L, n.threads = 1L)`: no posterior draws will be taken after thinning
  Backtrace:
      ▆
   1. └─bartCause:::getBartTreatmentFit(...)
   2.   └─base::eval(bartCall, envir = evalEnv)
   3.     └─base::eval(bartCall, envir = evalEnv)
   4.       └─dbarts::rbart_vi(...)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 251 ]
  Error: Test failures
  Execution halted