Running ‘testthat.R’ [99s/55s]
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 1 | WARN 0 | SKIP 146 | PASS 151 ]
  
  ══ Skipped tests (146) ═════════════════════════════════════════════════════════
  • On CRAN (146): 'test-2-fit-less-basic.R:2:3', 'test-2-fit-less-basic.R:33:3',
    'test-2-fit-less-basic.R:86:3', 'test-2-fit-less-basic.R:103:3',
    'test-2-fit-less-basic.R:175:3', 'test-2-fit-less-basic.R:194:3',
    'test-2-fit-less-basic.R:245:3', 'test-2-fit-less-basic.R:253:3',
    'test-2-fit-less-basic.R:283:3', 'test-2-fit-less-basic.R:302:3',
    'test-2-fit-less-basic.R:326:3', 'test-2-fit-less-basic.R:371:3',
    'test-2-fit-less-basic.R:383:3', 'test-2-fit-less-basic.R:437:3',
    'test-2-fit-less-basic.R:512:3', 'test-2-print-anisotropy.R:2:3',
    'test-3-families.R:40:3', 'test-3-families.R:61:3', 'test-3-families.R:81:3',
    'test-3-families.R:97:3', 'test-3-families.R:133:3',
    'test-3-families.R:148:3', 'test-3-families.R:162:3',
    'test-3-families.R:180:3', 'test-3-families.R:204:3',
    'test-3-spatial-varying.R:2:3', 'test-3-spatial-varying.R:95:3',
    'test-3-spatial-varying.R:121:3', 'test-3-spatial-varying.R:142:3',
    'test-4-index-calculation.R:4:3', 'test-4-index-calculation.R:60:3',
    'test-5-residuals.R:21:3', 'test-5-residuals.R:184:3',
    'test-5-residuals.R:285:3', 'test-5-residuals.R:298:3',
    'test-5-residuals.R:339:3', 'test-6-tmb-simulation.R:3:3',
    'test-6-tmb-simulation.R:36:3', 'test-6-tmb-simulation.R:72:3',
    'test-6-tmb-simulation.R:125:3', 'test-7-visreg.R:2:3',
    'test-8-delta2.R:2:3', 'test-8-delta2.R:78:3', 'test-8-delta2.R:148:3',
    'test-8-delta2.R:255:3', 'test-8-delta2.R:349:3', 'test-8-delta2.R:429:3',
    'test-8-delta2.R:479:3', 'test-9-mvn-simulation.R:2:3',
    'test-9-mvn-simulation.R:27:3', 'test-9-mvn-simulation.R:53:3',
    'test-9-mvn-simulation.R:137:3', 'test-9-mvn-simulation.R:163:3',
    'test-9-mvn-simulation.R:237:3', 'test-9-mvn-simulation.R:313:3',
    'test-aniso-plots.R:3:3', 'test-cross-validation.R:3:3',
    'test-cross-validation.R:53:3', 'test-cross-validation.R:70:3',
    'test-cross-validation.R:98:3', 'test-cross-validation.R:236:3',
    'test-delta-population-predictions.R:2:3', 'test-delta.R:6:3',
    'test-delta.R:53:3', 'test-delta.R:66:3', 'test-delta.R:83:3',
    'test-delta.R:97:3', 'test-delta.R:112:3', 'test-delta.R:126:3',
    'test-deprecated-args.R:2:3', 'test-deprecated-args.R:67:3',
    'test-dharma.R:3:3', 'test-extra-optimization.R:2:3',
    'test-extra-time.R:3:3', 'test-extra-time.R:42:3', 'test-extra-time.R:116:3',
    'test-factor-levels.R:2:3', 'test-factor-levels.R:37:3',
    'test-factor-levels.R:91:3', 'test-forecasting.R:2:3', 'test-index.R:3:3',
    'test-link-prediction.R:5:3', 'test-link-prediction.R:67:3',
    'test-links.R:2:3', 'test-methods.R:3:3', 'test-methods.R:33:3',
    'test-mix.R:3:3', 'test-mix.R:62:3', 'test-mix.R:78:3', 'test-mix.R:97:3',
    'test-mix.R:117:3', 'test-nonstationary.R:118:3',
    'test-nonstationary.R:164:3', 'test-nonstationary.R:211:3',
    'test-nonstationary.R:239:3', 'test-nonstationary.R:290:3',
    'test-offset.R:2:3', 'test-offset.R:20:3', 'test-offset.R:81:3',
    'test-offset.R:101:3', 'test-parameter-bounds.R:11:3',
    'test-prediction-missing-years.R:2:3', 'test-priors.R:23:3',
    'test-priors.R:69:3', 'test-priors.R:124:3', 'test-random-intercepts.R:11:3',
    'test-random-intercepts.R:125:3', 'test-random-intercepts.R:160:3',
    'test-random-intercepts.R:264:3', 'test-reml.R:2:3', 'test-reml.R:74:3',
    'test-sanity.R:2:3', 'test-sdmTMB-simulate.R:2:3', 'test-smooths.R:4:3',
    'test-smooths.R:16:3', 'test-smooths.R:52:3', 'test-smooths.R:89:3',
    'test-smooths.R:127:3', 'test-smooths.R:205:3', 'test-smooths.R:256:3',
    'test-smooths.R:279:3', 'test-smooths.R:302:3', 'test-smooths.R:323:3',
    'test-smooths.R:345:3', 'test-smooths.R:366:3', 'test-smooths.R:383:3',
    'test-smooths.R:400:3', 'test-smooths.R:417:3', 'test-smooths.R:434:3',
    'test-smooths.R:445:3', 'test-smooths.R:462:3', 'test-smooths.R:481:3',
    'test-threshold-models.R:2:3', 'test-threshold-models.R:18:3',
    'test-threshold-models.R:32:3', 'test-time-varying.R:2:3',
    'test-time-varying.R:76:3', 'test-tmb-simulation.R:3:3',
    'test-tmb-simulation.R:36:3', 'test-tmb-simulation.R:74:3',
    'test-tmb-simulation.R:125:3', 'test-utm-conversions.R:2:3',
    'test-without-spatial.R:2:3', 'test-1-fit-basic.R:129:3',
    'test-1-fit-basic.R:178:3', 'test-1-fit-basic.R:221:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-5-residuals.R:254:3'): Pearson residuals work ────────────────
  as.numeric(r) (`actual`) not equal to as.numeric(r1) (`expected`).
  
       actual      | expected                    
   [1] 0.14953175  - 0.14953169  [1]             
   [2] 0.23286508  - 0.23286503  [2]             
   [3] 0.05429365  - 0.05429360  [3]             
   [4] 0.48286508  - 0.48286503  [4]             
   [5] -0.01713492 - -0.01713497 [5]             
   [6] -0.37427778 - -0.37427783 [6]             
   [7] -0.01713492 - -0.01713497 [7]             
   [8] 0.14953175  - 0.14953169  [8]             
   [9] -0.51713492 - -0.51713497 [9]             
  [10] 0.08286508  - 0.08286503  [10]            
   ... ...           ...         and 290 more ...
  
  [ FAIL 1 | WARN 0 | SKIP 146 | PASS 151 ]
  Error: Test failures
  Execution halted