Running ‘testthat.R’ [51s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(glmmsr)
  > 
  > test_check("glmmsr")
  ── 1. Error: prev_fit doesn't affect the result (@test_fit.R#125)  ─────────────
  incorrect number of dimensions
  1: glmm(result ~ 0 + Sub(ability[winner] - ability[loser]), ability[liz] ~ 0 + SVL[liz] + 
         (1 | liz), data = flatlizards_glmmsr, family = binomial(link = "probit"), method = "Laplace", 
         control = list(check_Laplace = FALSE), verbose = 0) at testthat/test_fit.R:125
  2: find_modfr_glmm(formula, subformula = subformula, data = data, family = family, weights = weights, 
         offset = offset)
  3: lapply(subs, parse_sub, data = data, family = family)
  4: FUN(X[[i]], ...)
  5: eval(subexpr_mod, envir = data_subexpr)
  6: eval(subexpr_mod, envir = data_subexpr)
  7: `-fr`(`[fr`(ability, winner), `[fr`(ability, loser))
  8: is_modfr(modfr1)
  9: `[fr`(ability, winner)
  
  ── 2. Error: (unknown) (@test_model_frames.R#20)  ──────────────────────────────
  incorrect number of dimensions
  1: `[fr`(modfr_sub_random, subset) at testthat/test_model_frames.R:20
  
  ── 3. Error: (unknown) (@test_subformula.R#22)  ────────────────────────────────
  incorrect number of dimensions
  1: glmm(formula, subform, data = data, family = binomial, method = "Laplace", control = list(check_Laplace = FALSE), 
         verbose = 0) at testthat/test_subformula.R:22
  2: find_modfr_glmm(formula, subformula = subformula, data = data, family = family, weights = weights, 
         offset = offset)
  3: lapply(subs, parse_sub, data = data, family = family)
  4: FUN(X[[i]], ...)
  5: eval(subexpr_mod, envir = data_subexpr)
  6: eval(subexpr_mod, envir = data_subexpr)
  7: `-fr`(`[fr`(ability, player1), `[fr`(ability, player2))
  8: is_modfr(modfr1)
  9: `[fr`(ability, player1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 69 SKIPPED: 2 FAILED: 3
  1. Error: prev_fit doesn't affect the result (@test_fit.R#125) 
  2. Error: (unknown) (@test_model_frames.R#20) 
  3. Error: (unknown) (@test_subformula.R#22) 
  
  Error: testthat unit tests failed
  Execution halted