Running ‘testthat.R’ [13s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(PCAmatchR)
  > 
  > test_check("PCAmatchR")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-match_maker.R:81:3): match_maker works ──────────────────────────
  Error in `fullmatch.matrix(x = x, min.controls = controls, max.controls = controls, 
      omit.fraction = omf, data = data, ...)`: Some elements of the distance matrix are not found in the data argument.
  Backtrace:
      █
   1. ├─testthat::expect_named(...) test-match_maker.R:81:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─PCAmatchR::match_maker(...)
   5.   ├─optmatch::pairmatch(...)
   6.   └─optmatch:::pairmatch.matrix(...)
   7.     ├─optmatch::fullmatch(...)
   8.     └─optmatch:::fullmatch.matrix(...)
  ── Error (test-match_maker.R:94:3): matches has correct dimensions ─────────────
  Error in `fullmatch.matrix(x = x, min.controls = controls, max.controls = controls, 
      omit.fraction = omf, data = data, ...)`: Some elements of the distance matrix are not found in the data argument.
  Backtrace:
      █
   1. └─PCAmatchR::match_maker(...) test-match_maker.R:94:2
   2.   ├─optmatch::pairmatch(...)
   3.   └─optmatch:::pairmatch.matrix(...)
   4.     ├─optmatch::fullmatch(...)
   5.     └─optmatch:::fullmatch.matrix(...)
  ── Error (test-match_maker.R:107:3): weights has correct dimension ─────────────
  Error in `fullmatch.matrix(x = x, min.controls = controls, max.controls = controls, 
      omit.fraction = omf, data = data, ...)`: Some elements of the distance matrix are not found in the data argument.
  Backtrace:
      █
   1. └─PCAmatchR::match_maker(...) test-match_maker.R:107:2
   2.   ├─optmatch::pairmatch(...)
   3.   └─optmatch:::pairmatch.matrix(...)
   4.     ├─optmatch::fullmatch(...)
   5.     └─optmatch:::fullmatch.matrix(...)
  ── Error (test-plot_maker.R:21:2): (code run outside of `test_that()`) ─────────
  Error in `fullmatch.matrix(x = x, min.controls = controls, max.controls = controls, 
      omit.fraction = omf, data = data, ...)`: Some elements of the distance matrix are not found in the data argument.
  Backtrace:
      █
   1. └─PCAmatchR::match_maker(...) test-plot_maker.R:21:1
   2.   ├─optmatch::pairmatch(...)
   3.   └─optmatch:::pairmatch.matrix(...)
   4.     ├─optmatch::fullmatch(...)
   5.     └─optmatch:::fullmatch.matrix(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted