Running ‘testthat.R’ [170s/197s]
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 2 | WARN 0 | SKIP 197 | PASS 188 ]
  
  ══ Skipped tests (197) ═════════════════════════════════════════════════════════
  • On CRAN (197): 'test-1-visreg.R:2:3', 'test-1-visreg.R:189:3',
    'test-2-fit-less-basic.R:2:3', 'test-2-fit-less-basic.R:32:3',
    'test-2-fit-less-basic.R:84:3', 'test-2-fit-less-basic.R:100:3',
    'test-2-fit-less-basic.R:171:3', 'test-2-fit-less-basic.R:189:3',
    'test-2-fit-less-basic.R:239:3', 'test-2-fit-less-basic.R:247:3',
    'test-2-fit-less-basic.R:276:3', 'test-2-fit-less-basic.R:294:3',
    'test-2-fit-less-basic.R:317:3', 'test-2-fit-less-basic.R:361:3',
    'test-2-fit-less-basic.R:372:3', 'test-2-fit-less-basic.R:426:3',
    'test-2-fit-less-basic.R:501:3', 'test-2-print-anisotropy.R:2:3',
    'test-2-tidy.R:2:3', 'test-2-tidy.R:17:3', 'test-2-tidy.R:33:3',
    'test-2-tidy.R:48:3', 'test-2-tidy.R:61:3', 'test-2-tidy.R:83:3',
    'test-2-tidy.R:96:3', 'test-2-tidy.R:113:3', 'test-2-tidy.R:148:3',
    'test-2-tidy.R:189:3', 'test-3-families.R:39:3', 'test-3-families.R:59:3',
    'test-3-families.R:78:3', 'test-3-families.R:93:3',
    'test-3-families.R:128:3', 'test-3-families.R:142:3',
    'test-3-families.R:155:3', 'test-3-families.R:172:3',
    'test-3-families.R:195:3', 'test-3-families.R:427:3',
    'test-3-families.R:471:3', 'test-3-spatial-varying.R:2:3',
    'test-3-spatial-varying.R:94:3', 'test-3-spatial-varying.R:119:3',
    'test-3-spatial-varying.R:139:3', 'test-4-index-calculation.R:3:3',
    'test-4-index-calculation.R:58:3', 'test-4-index-calculation.R:85:3',
    'test-5-residuals.R:20:3', 'test-5-residuals.R:216:3',
    'test-5-residuals.R:317:3', 'test-5-residuals.R:330:3',
    'test-5-residuals.R:370:3', 'test-5-residuals.R:389:3',
    'test-6-tmb-simulation.R:2:3', 'test-6-tmb-simulation.R:34:3',
    'test-6-tmb-simulation.R:69:3', 'test-6-tmb-simulation.R:121:3',
    'test-6-tmb-simulation.R:163:3', 'test-6-tmb-simulation.R:184:3',
    'test-6-tmb-simulation.R:259:3', 'test-8-delta2.R:2:3',
    'test-8-delta2.R:77:3', 'test-8-delta2.R:146:3', 'test-8-delta2.R:252:3',
    'test-8-delta2.R:346:3', 'test-8-delta2.R:425:3', 'test-8-delta2.R:474:3',
    'test-9-mvn-simulation.R:2:3', 'test-9-mvn-simulation.R:26:3',
    'test-9-mvn-simulation.R:51:3', 'test-9-mvn-simulation.R:134:3',
    'test-9-mvn-simulation.R:159:3', 'test-9-mvn-simulation.R:232:3',
    'test-9-mvn-simulation.R:307:3', 'test-aniso-plots.R:2:3', 'test-cAIC.R:2:3',
    'test-cross-validation.R:3:3', 'test-cross-validation.R:52:3',
    'test-cross-validation.R:70:3', 'test-cross-validation.R:98:3',
    'test-cross-validation.R:148:3', 'test-cross-validation.R:170:3',
    'test-cross-validation.R:308:3', 'test-delta-population-predictions.R:2:3',
    'test-delta.R:6:3', 'test-delta.R:51:3', 'test-delta.R:63:3',
    'test-delta.R:81:3', 'test-delta.R:95:3', 'test-delta.R:109:3',
    'test-delta.R:122:3', 'test-delta.R:181:3', 'test-delta.R:226:3',
    'test-deprecated-args.R:2:3', 'test-deprecated-args.R:65:3',
    'test-dharma.R:2:3', 'test-extra-optimization.R:2:3',
    'test-extra-time.R:3:3', 'test-extra-time.R:45:3', 'test-extra-time.R:119:3',
    'test-extra-time.R:183:3', 'test-extra-time.R:208:3',
    'test-factor-levels.R:2:3', 'test-factor-levels.R:36:3',
    'test-factor-levels.R:89:3', 'test-forecasting.R:2:3', 'test-index.R:2:3',
    'test-index.R:66:3', 'test-index.R:117:3', 'test-index.R:150:3',
    'test-link-prediction.R:5:3', 'test-link-prediction.R:66:3',
    'test-links.R:2:3', 'test-methods.R:2:3', 'test-methods.R:31:3',
    'test-methods.R:43:3', 'test-mix.R:2:3', 'test-mix.R:60:3',
    'test-mix.R:75:3', 'test-mix.R:93:3', 'test-mix.R:112:3',
    'test-nonstationary.R:116:3', 'test-nonstationary.R:161:3',
    'test-nonstationary.R:207:3', 'test-nonstationary.R:234:3',
    'test-nonstationary.R:285:3', 'test-offset.R:2:3', 'test-offset.R:19:3',
    'test-offset.R:79:3', 'test-offset.R:98:3', 'test-offset.R:143:3',
    'test-offset.R:165:3', 'test-parameter-bounds.R:11:3',
    'test-poisson-link.R:2:3', 'test-prediction-missing-years.R:2:3',
    'test-priors.R:22:3', 'test-priors.R:123:3', 'test-priors.R:170:3',
    'test-projection.R:2:3', 'test-projection.R:126:3',
    'test-projection.R:172:3', 'test-projection.R:218:3',
    'test-random-effects.R:14:3', 'test-random-effects.R:281:3',
    'test-random-effects.R:316:3', 'test-random-effects.R:381:3',
    'test-random-effects.R:418:3', 'test-random-intercepts.R:11:3',
    'test-random-intercepts.R:146:3', 'test-random-intercepts.R:181:3',
    'test-random-intercepts.R:247:3', 'test-random-intercepts.R:285: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:15:3',
    'test-smooths.R:50:3', 'test-smooths.R:90:3', 'test-smooths.R:127:3',
    'test-smooths.R:203:3', 'test-smooths.R:253:3', 'test-smooths.R:275:3',
    'test-smooths.R:297:3', 'test-smooths.R:317:3', 'test-smooths.R:338:3',
    'test-smooths.R:358:3', 'test-smooths.R:374:3', 'test-smooths.R:390:3',
    'test-smooths.R:406:3', 'test-smooths.R:422:3', 'test-smooths.R:432:3',
    'test-smooths.R:448:3', 'test-smooths.R:465:3',
    'test-threshold-models.R:2:3', 'test-threshold-models.R:17:3',
    'test-threshold-models.R:30:3', 'test-time-varying.R:2:3',
    'test-time-varying.R:148:3', 'test-tmb-simulation.R:2:3',
    'test-tmb-simulation.R:34:3', 'test-tmb-simulation.R:71:3',
    'test-tmb-simulation.R:121:3', 'test-tmb-simulation.R:170:3',
    'test-tmb-simulation.R:188:3', 'test-tmb-simulation.R:234:3',
    'test-tmb-simulation.R:297:3', 'test-truncated-dists.R:2:3',
    'test-truncated-dists.R:41:3', 'test-truncated-dists.R:80:3',
    'test-truncated-dists.R:105:3', 'test-truncated-dists.R:130:3',
    'test-utm-conversions.R:2:3', 'test-without-spatial.R:2:3',
    'test-1-fit-basic.R:128:3', 'test-1-fit-basic.R:177:3',
    'test-1-fit-basic.R:219:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-5-residuals.R:268:3'): Pearson residuals work ──────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'glmmTMB'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-5-residuals.R:268:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-deviance.R:66:3'): Deviance calculations are correct ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'glmmTMB'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-deviance.R:66:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 197 | PASS 188 ]
  Error: Test failures
  Execution halted