Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rcbalance)
  Loading required package: MASS
  Loading required package: plyr
  optmatch (>= 0.9-1) needed to run the rcbalance command.  Please load optmatch and agree to its academic license before calling rcbalance.
  > 
  > test_check("rcbalance")
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-default_penalty.R:11:2): Default penalties do not exclude more than absolutely necessary ──
  Error in `callrelax(match.network)`: Error: package optmatch (>= 0.9-1) not loaded.  To run rcbalance command, you must install optmatch first and agree to the terms of its license.
  Backtrace:
      ▆
   1. └─rcbsubset::rcbsubset(dist.mat, exclude.penalty = NULL) at test-default_penalty.R:11:8
   2.   └─rcbalance::rcbalance(...)
   3.     └─rcbalance::callrelax(match.network)
  ── Error (test-dist2net.R:3:1): (code run outside of `test_that()`) ────────────
  <packageNotFoundError/error/condition>
  Error in `library(optmatch)`: there is no package called 'optmatch'
  Backtrace:
      ▆
   1. └─base::library(optmatch) at test-dist2net.R:3:0
  ── Error (test-exclude_treated.R:3:1): (code run outside of `test_that()`) ─────
  <packageNotFoundError/error/condition>
  Error in `library(optmatch)`: there is no package called 'optmatch'
  Backtrace:
      ▆
   1. └─base::library(optmatch) at test-exclude_treated.R:3:0
  ── Error (test-penalty.R:3:1): (code run outside of `test_that()`) ─────────────
  <packageNotFoundError/error/condition>
  Error in `library(optmatch)`: there is no package called 'optmatch'
  Backtrace:
      ▆
   1. └─base::library(optmatch) at test-penalty.R:3:0
  ── Error (test-precision.R:3:1): (code run outside of `test_that()`) ───────────
  <packageNotFoundError/error/condition>
  Error in `library(optmatch)`: there is no package called 'optmatch'
  Backtrace:
      ▆
   1. └─base::library(optmatch) at test-precision.R:3:0
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted