Running ‘test-all.R’ [48s/50s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > aa <- options(spades.debug = FALSE)
  > options("spades.temp.debug" = aa)
  > if (FALSE) {
  +   ff <- list()
  +   runTestsWithTimings("ff")
  + }
  > test_check("SpaDES.core")
  Loading required package: SpaDES.core
  Loading required package: quickPlot
  Loading required package: reproducible
  
  Attaching package: 'SpaDES.core'
  
  The following objects are masked from 'package:stats':
  
      end, start
  
  The following object is masked from 'package:utils':
  
      citation
  
  trying URL 'https://img.shields.io/badge/Made%20with-Markdown-1f425f.png'
  Content type 'image/png' length 2664 bytes
  ==================================================
  downloaded 2664 bytes
  
  [ FAIL 5 | WARN 0 | SKIP 47 | PASS 127 ]
  
  ══ Skipped tests (47) ══════════════════════════════════════════════════════════
  • GLPK not available on Linux (1): 'test-module-deps-methods.R:221:7'
  • NLMR cannot be loaded (20): 'test-Plots.R:117:3', 'test-cache.R:159:3',
    'test-cache.R:556:3', 'test-conditionalEvents.R:5:3', 'test-load.R:2:3',
    'test-load.R:205:3', 'test-multipleModulePaths.R:4:3',
    'test-objectSynonyms.R:2:3', 'test-paths.R:2:3', 'test-save.R:159:3',
    'test-save.R:272:3', 'test-simList.R:2:3', 'test-simList.R:381:3',
    'test-simulation.R:138:3', 'test-simulation.R:215:3',
    'test-simulation.R:232:3', 'test-simulation.R:414:3',
    'test-simulation.R:921:3', 'test-simulation.R:962:3', 'test-timeunits.R:2:3'
  • On CRAN (22): 'test-1memory.R:3:3', 'test-Plots.R:2:3', 'test-cache.R:2:3',
    'test-cache.R:224:3', 'test-checkpoint.R:2:3', 'test-checkpoint.R:46:3',
    'test-downloadData.R:2:3', 'test-downloadModule.R:2:3',
    'test-downloadModule.R:33:3', 'test-downloadModule.R:64:3',
    'test-downloadModule.R:106:3', 'test-futureEvents.R:2:3',
    'test-load.R:115:3', 'test-load.R:320:3', 'test-mod.R:150:3',
    'test-module-deps-methods.R:119:3', 'test-save.R:2:3',
    'test-simList.R:218:3', 'test-simList.R:323:3', 'test-simList.R:340:3',
    'test-simulation.R:2:3', 'test-timeunits.R:81:3'
  • benchmarking DES (1): 'test-simulation.R:252:3'
  • empty test (1): 'test-Plots.R:201:1'
  • restartR not possible in automated tests (1): 'test-save.R:339:3'
  • restartR with logging not possible in automated tests (1):
    'test-save.R:427:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cache.R:298:3'): test .robustDigest for simLists ───────────────
  Error in `.wrap.simList(output, cachePath, preDigest = preDigest, drv = drv, 
      conn = conn, verbose = verbose)`: unused argument (preDigest = preDigest)
  Backtrace:
       ▆
    1. ├─testthat::capture_messages(do.call(simInit, args)) at test-cache.R:298:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─base::do.call(simInit, args)
    4. ├─SpaDES.core (local) `<nnstndGF>`(modules = `<list>`, paths = `<named list>`, params = `<named list>`)
    5. └─SpaDES.core (local) `<nnstndGF>`(modules = `<list>`, paths = `<named list>`, params = `<named list>`)
    6.   ├─SpaDES.core::simInit(...)
    7.   └─SpaDES.core::simInit(...)
    8.     ├─base::withCallingHandlers(...)
    9.     └─SpaDES.core:::.runModuleInputObjects(sim, m, objects, notOlderThan)
   10.       └─reproducible::Cache(...)
   11.         └─reproducible::.wrap(...)
  ── Error ('test-cache.R:462:3'): Cache sim objs via .Cache attr ────────────────
  Error in `.wrap.simList(output, cachePath, preDigest = preDigest, drv = drv, 
      conn = conn, verbose = verbose)`: unused argument (preDigest = preDigest)
  Backtrace:
       ▆
    1. ├─SpaDES.core::spades(Copy(mySim)) at test-cache.R:462:3
    2. └─SpaDES.core::spades(Copy(mySim))
    3.   ├─base::withCallingHandlers(...)
    4.   └─SpaDES.core::doEvent(...)
    5.     └─SpaDES.core:::.runEvent(...)
    6.       ├─base::eval(fnCallAsExpr)
    7.       │ └─base::eval(fnCallAsExpr)
    8.       └─reproducible::Cache(...)
    9.         ├─reproducible::.wrap(...)
   10.         └─base::.handleSimpleError(...)
   11.           └─SpaDES.core (local) h(simpleError(msg, call))
  ── Error ('test-mod.R:22:3'): local mod object ─────────────────────────────────
  Error in `.wrap.simList(output, cachePath, preDigest = preDigest, drv = drv, 
      conn = conn, verbose = verbose)`: unused argument (preDigest = preDigest)
  Backtrace:
      ▆
   1. └─reproducible::Cache(spades, Copy(mySim)) at test-mod.R:22:3
   2.   └─reproducible::.wrap(...)
  ── Error ('test-save.R:542:3'): registerOutputs ────────────────────────────────
  Error in `.wrap.simList(output, cachePath, preDigest = preDigest, drv = drv, 
      conn = conn, verbose = verbose)`: unused argument (preDigest = preDigest)
  Backtrace:
      ▆
   1. ├─SpaDES.core::simInit(...) at test-save.R:542:3
   2. └─SpaDES.core::simInit(...)
   3.   ├─SpaDES.core::simInit(...)
   4.   └─SpaDES.core::simInit(...)
   5.     ├─base::withCallingHandlers(...)
   6.     └─SpaDES.core:::.runModuleInputObjects(sim, m, objects, notOlderThan)
   7.       └─reproducible::Cache(...)
   8.         └─reproducible::.wrap(...)
  ── Error ('test-userSuppliedObjs.R:34:7'): test userSuppliedObj ────────────────
  Error in `.wrap.simList(output, cachePath, preDigest = preDigest, drv = drv, 
      conn = conn, verbose = verbose)`: unused argument (preDigest = preDigest)
  Backtrace:
       ▆
    1. ├─testthat::capture_output(...) at test-userSuppliedObjs.R:32:3
    2. │ └─testthat::capture_output_lines(code, print, width = width)
    3. │   └─testthat:::eval_with_output(code, print = print, width = width)
    4. │     ├─withr::with_output_sink(path, withVisible(code))
    5. │     │ └─base::force(code)
    6. │     └─base::withVisible(code)
    7. ├─testthat::capture_messages(...) at test-userSuppliedObjs.R:33:5
    8. │ └─base::withCallingHandlers(...)
    9. ├─SpaDES.core::simInit(...) at test-userSuppliedObjs.R:34:7
   10. └─SpaDES.core::simInit(...)
   11.   ├─SpaDES.core::simInit(...)
   12.   └─SpaDES.core::simInit(...)
   13.     ├─base::withCallingHandlers(...)
   14.     └─SpaDES.core:::.runModuleInputObjects(sim, m, objects, notOlderThan)
   15.       └─reproducible::Cache(...)
   16.         └─reproducible::.wrap(...)
  
  [ FAIL 5 | WARN 0 | SKIP 47 | PASS 127 ]
  Error: Test failures
  Execution halted