Running ‘testthat.R’ [208s/113s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(glinvci)
  > 
  > test_check("glinvci")
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  Error: C stack usage  260543684 is too close to the limit
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-model-no-restriction.R:52:9): Without reparameterisation ──────
  sum(grad.glinv) not equal to 10.2448835853.
  1/1 mismatches
  [1] 3.17 - 10.2 == -7.08
  ── Failure (test-model-no-restriction.R:68:9): Without reparameterisation ──────
  sum(varest.glinv$hessian) not equal to 0.7919421307.
  1/1 mismatches
  [1] 1.29 - 0.792 == 0.499
  ── Failure (test-model-no-restriction.R:83:9): Without reparameterisation ──────
  sum(varest.glinv$hessian) not equal to -23.3817815558.
  1/1 mismatches
  [1] -22.7 - -23.4 == 0.65
  ── Failure (test-model-no-restriction.R:98:9): Without reparameterisation ──────
  sum(varest.glinv$hessian) not equal to -40.6134235336.
  1/1 mismatches
  [1] -50.7 - -40.6 == -10
  ── Failure (test-model-no-restriction.R:112:9): Without reparameterisation ─────
  sum(grad.glinv) not equal to 124.5431408527.
  1/1 mismatches
  [1] 140 - 125 == 15.9
  ── Failure (test-model-no-restriction.R:113:9): Without reparameterisation ─────
  sum(varest.glinv$hessian) not equal to -1242.1247178654.
  1/1 mismatches
  [1] -1243 - -1242 == -0.565
  ── Failure (test-model-with-restriction.R:149:13): With restrictions ───────────
  sum(varest$hessian) not equal to -6.9093028825.
  1/1 mismatches
  [1] -4 - -6.91 == 2.91
  ── Failure (test-model-with-restriction.R:289:13): With restrictions ───────────
  sum(varest$hessian) not equal to -6.1075126139.
  1/1 mismatches
  [1] -6.18 - -6.11 == -0.077
  ── Failure (test-model-with-restriction.R:352:13): With restrictions ───────────
  sum(varest$hessian) not equal to -24.1310923351.
  1/1 mismatches
  [1] -45.4 - -24.1 == -21.2
  ── Failure (test-model-with-restriction.R:362:13): With restrictions ───────────
  sum(varest$hessian) not equal to -24.1310923351.
  1/1 mismatches
  [1] -45.4 - -24.1 == -21.2
  ── Failure (test-model-with-restriction.R:372:13): With restrictions ───────────
  sum(varest$hessian) not equal to -24.1310923351.
  1/1 mismatches
  [1] -45.4 - -24.1 == -21.2
  ── Failure (test-model-with-restriction.R:382:13): With restrictions ───────────
  sum(varest$hessian) not equal to -24.1310923351.
  1/1 mismatches
  [1] -37.1 - -24.1 == -13
  ── Failure (test-model-with-restriction.R:392:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:402:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:412:13): With restrictions ───────────
  sum(varest$hessian) not equal to -122.9088186939.
  1/1 mismatches
  [1] -159 - -123 == -36.5
  ── Failure (test-model-with-restriction.R:422:13): With restrictions ───────────
  sum(varest$hessian) not equal to -122.9088186939.
  1/1 mismatches
  [1] -159 - -123 == -36.5
  ── Failure (test-model-with-restriction.R:432:13): With restrictions ───────────
  sum(varest$hessian) not equal to -122.9088186939.
  1/1 mismatches
  [1] -159 - -123 == -36.5
  ── Failure (test-model-with-restriction.R:442:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:452:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -48.7 - -41.1 == -7.6
  ── Failure (test-model-with-restriction.R:462:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:472:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:482:13): With restrictions ───────────
  sum(varest$hessian) not equal to -291.8124158605.
  1/1 mismatches
  [1] -396 - -292 == -105
  ── Failure (test-model-with-restriction.R:492:13): With restrictions ───────────
  sum(varest$hessian) not equal to -291.8124158605.
  1/1 mismatches
  [1] -396 - -292 == -105
  ── Failure (test-model-with-restriction.R:502:13): With restrictions ───────────
  sum(varest$hessian) not equal to -49.4063166226.
  1/1 mismatches
  [1] -56.1 - -49.4 == -6.73
  ── Failure (test-model-with-restriction.R:512:13): With restrictions ───────────
  sum(varest$hessian) not equal to -41.1380058979.
  1/1 mismatches
  [1] -42.6 - -41.1 == -1.47
  ── Failure (test-model-with-restriction.R:522:13): With restrictions ───────────
  sum(varest$hessian) not equal to -291.8124158605.
  1/1 mismatches
  [1] -396 - -292 == -105
  ── Failure (test-model-with-restriction.R:532:13): With restrictions ───────────
  sum(varest$hessian) not equal to -49.4063166226.
  1/1 mismatches
  [1] -56.1 - -49.4 == -6.73
  ── Failure (test-model-with-restriction.R:542:13): With restrictions ───────────
  sum(varest$hessian) not equal to -291.8124158605.
  1/1 mismatches
  [1] -396 - -292 == -105
  ── Failure (test-model-with-restriction.R:552:13): With restrictions ───────────
  sum(varest$hessian) not equal to -1.9392e-06.
  1/1 mismatches
  [1] 76.6 - -1.94e-06 == 76.6
  ── Failure (test-model-with-restriction.R:562:13): With restrictions ───────────
  sum(varest$hessian) not equal to -46.720941571.
  1/1 mismatches
  [1] -50.7 - -46.7 == -4.02
  ── Failure (test-model-with-restriction.R:572:13): With restrictions ───────────
  sum(varest$hessian) not equal to -1.0155016915.
  1/1 mismatches
  [1] -1.08 - -1.02 == -0.0666
  ── Error (test-model-with-restriction.R:583:13): With restrictions ─────────────
  Error: hphylik(): Computation interrupted by user.
  Backtrace:
      █
   1. ├─base::suppressWarnings(...) test-model-with-restriction.R:583:12
   2. │ └─base::withCallingHandlers(...)
   3. ├─glinvci::varest(...)
   4. └─glinvci:::varest.glinv(...)
   5.   └─hess(mod, numDerivArgs = numDerivArgs, store_gaussian_hessian = store_gaussian_hessian)(mlepar)
   6.     ├─glinvci::hess(...)
   7.     └─glinvci:::hess.glinv_gauss(...)
   8.       └─glinvci:::hess_glinv_gauss_(...)
  
  [ FAIL 32 | WARN 0 | SKIP 0 | PASS 39 ]
  Error: Test failures
  Execution halted