Running ‘testthat.R’ [1s/3s]
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 6 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-1tok.R:2: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-1tok.R:2:0
  ── Error (test-build_dist_struct.R:2: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-build_dist_struct.R:2:0
  ── Error (test-dist2net.R:2: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:2:0
  ── Error (test-exclude_treated.R:2: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:2:0
  ── Error (test-penalty.R:2: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:2:0
  ── Error (test-precision.R:2: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:2:0
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted