Running ‘exporting-methods.R’ [2s/4s]
  Running ‘mahal-dist.R’ [2s/3s]
  Running ‘testthat.R’ [17s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(optmatch)
  Loading required package: survival
  The optmatch package has an academic license. Enter relaxinfo() for more information.
  > 
  > test_check("optmatch")
  ── 1. Error: Bigglm distances (@test.match_on.R#293)  ──────────────────────────
  no applicable method for 'bigglm' applied to an object of class "data.frame"
  1: bigglm(Z ~ X1 + X2, data = test.data, family = binomial()) at testthat/test.match_on.R:293
  2: bigglm(Z ~ X1 + X2, data = test.data, family = binomial())
  
  ── 2. Error: Bigglm distances (@test.mdist.R#100)  ─────────────────────────────
  no applicable method for 'bigglm' applied to an object of class "data.frame"
  1: bigglm(Z ~ X1 + X2, data = test.data, family = binomial()) at testthat/test.mdist.R:100
  2: bigglm(Z ~ X1 + X2, data = test.data, family = binomial())
  
  ── 3. Error: bigglm method (@test.mdist.old.R#148)  ────────────────────────────
  no applicable method for 'bigglm' applied to an object of class "data.frame"
  1: bigglm(fmla, data = nuclearplants, family = binomial()) at testthat/test.mdist.old.R:148
  2: bigglm(fmla, data = nuclearplants, family = binomial())
  
  ── 4. Error: scores with bigglm (@test.scores.R#222)  ──────────────────────────
  no applicable method for 'bigglm' applied to an object of class "data.frame"
  1: bigglm(Z ~ X1 + X2, data = test.data, family = binomial()) at testthat/test.scores.R:222
  2: bigglm(Z ~ X1 + X2, data = test.data, family = binomial())
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1351 SKIPPED: 0 FAILED: 4
  1. Error: Bigglm distances (@test.match_on.R#293) 
  2. Error: Bigglm distances (@test.mdist.R#100) 
  3. Error: bigglm method (@test.mdist.old.R#148) 
  4. Error: scores with bigglm (@test.scores.R#222) 
  
  Error: testthat unit tests failed
  Execution halted