Package check result: OK Changes to worse in reverse depends: Package: bartCause Check: tests New result: ERROR Running ‘testthat.R’ [11s/8s] 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 1 | WARN 1 | SKIP 8 | PASS 396 ] ══ Skipped tests (8) ═══════════════════════════════════════════════════════════ • On CRAN (8): 'test-04-bartc.R:111:3', 'test-04-bartc.R:134:3', 'test-04-bartc.R:175:3', 'test-04-bartc.R:226:3', 'test-05-generics.R:189:3', 'test-06-regression.R:34:3', 'test-11-stan4bart.R:14:3', 'test-11-stan4bart.R:119:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-09-binary.R:40:3'): binary outcome runs with tmle ────────────── Error in `if (is.null(np) | (np[2] <= 1)) stop("x should be a matrix with 2 or more columns")`: argument is of length zero Backtrace: ▆ 1. ├─testthat::expect_is(...) at test-09-binary.R:40:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─bartCause::bartc(...) 5. ├─bartCause:::assignAll(eval(responseCall, envir = evalEnv)) 6. └─base::eval(responseCall, envir = evalEnv) 7. └─base::eval(responseCall, envir = evalEnv) 8. └─bartCause:::getTMLEResponseFit(...) 9. └─bartCause:::getTMLEEstimates(...) 10. ├─base::t(...) 11. └─base::sapply(...) 12. └─base::lapply(X = X, FUN = FUN, ...) 13. └─bartCause (local) FUN(X[[i]], ...) 14. └─tmle::tmle(...) 15. └─tmle:::.prescreenW.g(...) 16. └─glmnet::cv.glmnet(...) 17. └─glmnet:::cv.glmnet.raw(...) 18. └─glmnet::glmnet(...) [ FAIL 1 | WARN 1 | SKIP 8 | PASS 396 ] Error: Test failures Execution halted