Running ‘testthat.R’ [15s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(dexter)
  > 
  > test_check("dexter")
  ==========
  ==========
  =======Error in solve.default(H * scale, sufI - EsufI) : 
    system is computationally singular: reciprocal condition number = 2.18096e-17
  =Error in solve.default(H * scale, sufI - EsufI) : 
    Lapack routine dgesv: system is exactly singular: U[3,3] = 0
  ── 1. Error: inconsistencies between data and parms are handled correctly (@test
  problem cannot be computed
  1: fit_enorm(db, !(item_id == "S4DoShout" & item_score == 1)) at testthat/test_ability.R:14
  2: fit_enorm_(dataSrc, qtpredicate = qtpredicate, fixed_params = fixed_params, method = method, 
         nIterations = nIterations, env = env, merge_within_persons = merge_within_persons)
  3: calibrate_CML(scoretab = scoretab, design = design, sufI = ssIS$sufI, a = ssIS$item_score, 
         first = ssI$first, last = ssI$last, nIter = nIterations, fixed_b = fixed_b)
  4: stop("problem cannot be computed")
  
  ==========
  2000 responses imported.
  2000 responses imported.
  
  rules_changed: 1
  rules_added: 0 
  ==========
  ==========
   [1] "S1DoCurse"   "S1DoScold"   "S1DoShout"   "S1WantCurse" "S1WantScold"
   [6] "S1WantShout" "S2DoCurse"   "S2DoScold"   "S2DoShout"   "S2WantCurse"
  [11] "S2WantScold" "S2WantShout" "S3DoCurse"   "S3DoScold"   "S3DoShout"  
  [16] "S3WantCurse" "S3WantScold" "S3WantShout" "S4DoCurse"   "S4DoScold"  
  [21] "S4DoShout"   "S4WantCurse" "S4WantScold" "S4WantShout"
  =======Error in solve.default(H * scale, sufI - EsufI) : 
    Lapack routine dgesv: system is exactly singular: U[4,4] = 0
  In addition: Warning message:
  call dbDisconnect() when finished working with a connection 
  Error in solve.default(H * scale, sufI - EsufI) : 
    Lapack routine dgesv: system is exactly singular: U[4,4] = 0
  ── 2. Failure: calibration of verbal aggression dataset matches oplm results, wi
  `object` threw an error.
  Message: problem cannot be computed
  Class:   simpleError/error/condition
  
  =======Error in solve.default(H * scale, sufI - EsufI) : 
    system is computationally singular: reciprocal condition number = 5.86363e-18
  Error in solve.default(H * scale, sufI - EsufI) : 
    system is computationally singular: reciprocal condition number = 7.18456e-20
  ── 3. Error: populations work (@test_plausible_values.R#9)  ────────────────────
  problem cannot be computed
  1: fit_enorm(db, (grepl("dxP\\d\\d$", person_id, perl = TRUE) & item_position <= 16) | 
         (!grepl("dxP\\d\\d$", person_id, perl = TRUE) & item_position > 8)) at testthat/test_plausible_values.R:9
  2: fit_enorm_(dataSrc, qtpredicate = qtpredicate, fixed_params = fixed_params, method = method, 
         nIterations = nIterations, env = env, merge_within_persons = merge_within_persons)
  3: calibrate_CML(scoretab = scoretab, design = design, sufI = ssIS$sufI, a = ssIS$item_score, 
         first = ssI$first, last = ssI$last, nIter = nIterations, fixed_b = fixed_b)
  4: stop("problem cannot be computed")
  
  ==========
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 137 | SKIPPED: 4 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: inconsistencies between data and parms are handled correctly (@test_ability.R#14) 
  2. Failure: calibration of verbal aggression dataset matches oplm results, with fixed and unfixed (@test_enorm.R#85) 
  3. Error: populations work (@test_plausible_values.R#9) 
  
  Error: testthat unit tests failed
  Execution halted