Running ‘testthat.R’ [77s/277s]
  Running ‘xBalanceTests2.R’
  Comparing ‘xBalanceTests2.Rout’ to ‘xBalanceTests2.Rout.save’ ... OK
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(RItools)
  Loading required package: ggplot2
  > 
  > test_check("RItools")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1406 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test.Design.R:650:5'): alignDesigns, designToDescriptives output alignment ──
  Error in `.local(x, ...)`: insufficient space
  Backtrace:
      ▆
   1. └─RItools:::alignDesignsByStrata("strat", simple2) at test.Design.R:650:5
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─RItools:::slm.wfit.csr(...)
   5.     └─RItools:::slm.fit.csr.fixed(wx, wy, ...)
   6.       ├─SparseM::chol(t(x) %*% x, ...)
   7.       └─SparseM::chol(t(x) %*% x, ...)
   8.         └─SparseM (local) .local(x, ...)
  ── Error ('test.Design.R:674:5'): alignDesigns centers covars by stratum ───────
  Error in `.local(x, ...)`: insufficient space
  Backtrace:
      ▆
   1. └─RItools:::alignDesignsByStrata("strat", simple0) at test.Design.R:674:5
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─RItools:::slm.wfit.csr(...)
   5.     └─RItools:::slm.fit.csr.fixed(wx, wy, ...)
   6.       ├─SparseM::chol(t(x) %*% x, ...)
   7.       └─SparseM::chol(t(x) %*% x, ...)
   8.         └─SparseM (local) .local(x, ...)
  ── Error ('test.Design.R:737:5'): scale() method wrapping to alignDesignsByStrata() ──
  Error in `.local(x, ...)`: insufficient space
  Backtrace:
      ▆
   1. └─RItools:::alignDesignsByStrata("strat", simple2b, post.align.transform = NULL) at test.Design.R:737:5
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─RItools:::slm.wfit.csr(...)
   5.     └─RItools:::slm.fit.csr.fixed(wx, wy, ...)
   6.       ├─SparseM::chol(t(x) %*% x, ...)
   7.       └─SparseM::chol(t(x) %*% x, ...)
   8.         └─SparseM (local) .local(x, ...)
  ── Error ('test.balanceTest.R:219:3'): Use of subset argument ──────────────────
  Error in `.local(x, ...)`: insufficient space
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test.balanceTest.R:219:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─RItools::balanceTest(...)
    7.   └─base::sapply(...)
    8.     └─base::lapply(X = X, FUN = FUN, ...)
    9.       └─RItools (local) FUN(X[[i]], ...)
   10.         ├─base::suppressWarnings(...)
   11.         │ └─base::withCallingHandlers(...)
   12.         └─RItools:::slm.wfit.csr(...)
   13.           └─RItools:::slm.fit.csr.fixed(wx, wy, ...)
   14.             ├─SparseM::chol(t(x) %*% x, ...)
   15.             └─SparseM::chol(t(x) %*% x, ...)
   16.               └─SparseM (local) .local(x, ...)
  ── Error ('test.utils.R:48:15'): sparse design strat mean calculator returns 0 for strata w/o non-null wts ──
  Error in `.local(x, ...)`: insufficient space
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test.utils.R:48:15
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─RItools:::slm.wfit.csr(S_, matrix(1:4), weights = wts)
    7.   └─RItools:::slm.fit.csr.fixed(wx, wy, ...)
    8.     ├─SparseM::chol(t(x) %*% x, ...)
    9.     └─SparseM::chol(t(x) %*% x, ...)
   10.       └─SparseM (local) .local(x, ...)
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 1406 ]
  Error: Test failures
  Execution halted