Running ‘testthat.R’ [91s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > options(Matrix.warnDeprecatedCoerce = 2)
  > 
  > library(testthat)
  > library(sdmTMB)
  > 
  > test_check("sdmTMB")
  Starting 2 test processes
  [ FAIL 4 | WARN 0 | SKIP 118 | PASS 100 ]
  
  ══ Skipped tests (118) ═════════════════════════════════════════════════════════
  • On CRAN (118): 'test-2-fit-less-basic.R:2:3', 'test-2-fit-less-basic.R:34:3',
    'test-2-fit-less-basic.R:88:3', 'test-2-fit-less-basic.R:106:3',
    'test-2-fit-less-basic.R:179:3', 'test-2-fit-less-basic.R:199:3',
    'test-2-fit-less-basic.R:252:3', 'test-2-fit-less-basic.R:260:3',
    'test-2-fit-less-basic.R:291:3', 'test-2-fit-less-basic.R:311:3',
    'test-2-fit-less-basic.R:336:3', 'test-2-fit-less-basic.R:382:3',
    'test-2-fit-less-basic.R:395:3', 'test-2-fit-less-basic.R:450:3',
    'test-3-families.R:41:5', 'test-3-families.R:62:5', 'test-3-families.R:82:5',
    'test-3-families.R:98:5', 'test-3-families.R:134:5',
    'test-3-families.R:149:5', 'test-3-families.R:163:5',
    'test-3-families.R:181:5', 'test-3-families.R:206:3',
    'test-4-index-calculation.R:4:3', 'test-5-residuals.R:21:3',
    'test-5-residuals.R:185:3', 'test-6-tmb-simulation.R:3:3',
    'test-6-tmb-simulation.R:37:3', 'test-6-tmb-simulation.R:74:3',
    'test-6-tmb-simulation.R:128:3', 'test-7-visreg.R:2:3',
    'test-8-delta2.R:2:3', 'test-8-delta2.R:79:3', 'test-8-delta2.R:150:3',
    'test-8-delta2.R:258:3', 'test-8-delta2.R:353:3', 'test-8-delta2.R:434:3',
    'test-9-mvn-simulation.R:2:3', 'test-9-mvn-simulation.R:28:3',
    'test-9-mvn-simulation.R:55:3', 'test-9-mvn-simulation.R:140:3',
    'test-9-mvn-simulation.R:167:3', 'test-9-mvn-simulation.R:242:3',
    'test-cross-validation.R:3:3', 'test-cross-validation.R:53:3',
    'test-cross-validation.R:83:3', 'test-delta.R:8:5', 'test-delta.R:50:5',
    'test-delta.R:63:5', 'test-delta.R:81:5', 'test-delta.R:95:5',
    'test-delta.R:111:5', 'test-delta.R:126:5', 'test-deprecated-args.R:2:3',
    'test-deprecated-args.R:68:3', 'test-dharma.R:3:3',
    'test-extra-optimization.R:2:3', 'test-forecasting.R:2:3',
    'test-link-prediction.R:4:3', 'test-link-prediction.R:66:3',
    'test-links.R:2:3', 'test-mix.R:3:3', 'test-mix.R:45:3', 'test-mix.R:61:3',
    'test-mix.R:79:3', 'test-mix.R:98:3', 'test-nonstationary.R:118:3',
    'test-nonstationary.R:165:3', 'test-nonstationary.R:213:3',
    'test-nonstationary.R:242:3', 'test-nonstationary.R:294:3',
    'test-offset.R:2:3', 'test-offset.R:21:3', 'test-offset.R:85:3',
    'test-parameter-bounds.R:11:3', 'test-prediction-missing-years.R:2:3',
    'test-priors.R:23:3', 'test-priors.R:71:3', 'test-random-intercepts.R:11:3',
    'test-random-intercepts.R:117:3', 'test-reml.R:2:3', 'test-reml.R:75:3',
    'test-sanity.R:2:3', 'test-sdmTMB-simulate.R:2:3', 'test-smooths.R:4:3',
    'test-smooths.R:17:3', 'test-smooths.R:54:3', 'test-smooths.R:93:3',
    'test-smooths.R:133:3', 'test-smooths.R:201:3', 'test-smooths.R:253:3',
    'test-smooths.R:277:3', 'test-smooths.R:301:3', 'test-smooths.R:323:3',
    'test-smooths.R:346:3', 'test-smooths.R:368:3', 'test-smooths.R:386:3',
    'test-smooths.R:404:3', 'test-smooths.R:422:3', 'test-smooths.R:440:3',
    'test-smooths.R:452:3', 'test-smooths.R:470:3', 'test-smooths.R:490:3',
    'test-smooths.R:507:3', 'test-spatial-varying.R:2:3',
    'test-threshold-models.R:2:3', 'test-threshold-models.R:19:3',
    'test-threshold-models.R:34:3', 'test-time-varying.R:2:3',
    'test-tmb-simulation.R:3:3', 'test-tmb-simulation.R:37:3',
    'test-tmb-simulation.R:76:3', 'test-tmb-simulation.R:128:3',
    'test-utm-conversions.R:2:3', 'test-without-spatial.R:2:3',
    'test-1-fit-basic.R:130:3', 'test-1-fit-basic.R:181:3',
    'test-1-fit-basic.R:225:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-control.R:21:3'): nlminb improves model fit with sdmTMBcontrol() ──
  max(m_1$gradients) > max(m_2$gradients) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-1-fit-basic.R:27:3'): sdmTMB model fit with a covariate beta ──
  round(s$observed[c(1:30, 300)], 3) not equal to c(...).
  31/31 mismatches (average diff: 0.414)
  [1]  0.341 - -0.313 ==  0.654
  [2]  0.003 - -0.408 ==  0.411
  [3] -0.125 -  0.551 == -0.676
  [4]  0.251 -  0.131 ==  0.120
  [5] -0.106 -  0.675 == -0.781
  [6] -0.445 -  0.904 == -1.349
  [7]  0.781 -  0.048 ==  0.733
  [8] -0.085 -  0.554 == -0.639
  [9]  0.648 -  0.361 ==  0.287
  ...
  ── Failure ('test-1-fit-basic.R:81:3'): sdmTMB model fit with a covariate beta ──
  se_pc$ln_tau_O < se$ln_tau_O is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure ('test-1-fit-basic.R:103:3'): sdmTMB model fit with a covariate beta ──
  mean((p$est - s$observed)^2) not equal to 0.
  1/1 mismatches
  [1] 0.00289 - 0 == 0.00289
  
  [ FAIL 4 | WARN 0 | SKIP 118 | PASS 100 ]
  Error: Test failures
  Execution halted