Running 'test-all.R'
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > library(testthat)
  > 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
  
  2022-02-03 19:29:38 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:38 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:39 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:39 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:45 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:45 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:46 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:46 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:52 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:52 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:52 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:52 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:29:54 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:29:54 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:30:04 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:30:04 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:30:05 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:30:05 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:30:07 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:30:07 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  2022-02-03 19:30:09 ERROR::e: could not find function "gaussMap"
   2022-02-03 19:30:09 ERROR::e: gaussMap(template, scale = 10, var = 0.03, speedup = speedup, inMemory = inMemory)
  [ FAIL 15 | WARN 45 | SKIP 22 | PASS 445 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (12)
  • On Windows (2)
  • SpaDES.tools cannot be loaded (1)
  • benchmarking DES (1)
  • empty test (4)
  • restartR not possible in automated tests (1)
  • restartR with logging not possible in automated tests (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cache.R:42:3): test event-level cache & memory leaks ────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-cache.R:42:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─... %in% ...
    5. ├─testthat::capture_messages(...)
    6. │ └─base::withCallingHandlers(...)
    7. ├─SpaDES.core::spades(Copy(mySim), notOlderThan = Sys.time(), debug = FALSE) at test-cache.R:44:18
    8. └─SpaDES.core::spades(Copy(mySim), notOlderThan = Sys.time(), debug = FALSE)
    9.   ├─base::withCallingHandlers(...)
   10.   └─SpaDES.core::doEvent(...)
   11.     └─SpaDES.core:::.runEvent(...)
   12.       ├─base::eval(fnCallAsExpr)
   13.       │ └─base::eval(fnCallAsExpr)
   14.       ├─reproducible::Cache(...)
   15.       └─reproducible::Cache(...)
   16.         └─SpaDES.core FUN(...)
   17.           └─SpaDES.core Init(sim)
  ── Error (test-cache.R:162:3): test module-level cache ─────────────────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─testthat::expect_true(...) at test-cache.R:162:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─... %in% ...
    5. ├─testthat::capture_messages(...)
    6. │ └─base::withCallingHandlers(...)
    7. ├─SpaDES.core::spades(Copy(mySim), notOlderThan = Sys.time(), debug = FALSE) at test-cache.R:164:20
    8. └─SpaDES.core::spades(Copy(mySim), notOlderThan = Sys.time(), debug = FALSE)
    9.   ├─base::withCallingHandlers(...)
   10.   └─SpaDES.core::doEvent(...)
   11.     └─SpaDES.core:::.runEvent(...)
   12.       ├─base::eval(fnCallAsExpr)
   13.       │ └─base::eval(fnCallAsExpr)
   14.       ├─reproducible::Cache(...)
   15.       └─reproducible::Cache(...)
   16.         └─SpaDES.core FUN(...)
   17.           └─SpaDES.core Init(sim)
  ── Error (test-cache.R:512:3): test showSimilar ────────────────────────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─SpaDES.core::spades(Copy(mySim)) at test-cache.R:512:2
    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::Cache(...)
   10.         └─SpaDES.core FUN(...)
   11.           └─SpaDES.core Init(sim)
  ── Error (test-conditionalEvents.R:77:3): simulation runs with simInit and spades ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(mySim, debug = FALSE) at test-conditionalEvents.R:77:2
   2. └─SpaDES.core::spades(mySim, debug = FALSE)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-load.R:32:3): test-load.R: loading inputs does not work correctly ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(mySim) at test-load.R:32:2
   2. └─SpaDES.core::spades(mySim)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-load.R:162:5): test-load.R: passing arguments to filelist in simInit does not work correctly ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(sim2) at test-load.R:162:4
   2. └─SpaDES.core::spades(sim2)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-load.R:276:5): test-load.R: passing objects to simInit does not work correctly ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(sim6) at test-load.R:276:4
   2. └─SpaDES.core::spades(sim6)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-multipleModulePaths.R:79:3): simulation runs with simInit and spades ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─... %>% spades(debug = FALSE) at test-multipleModulePaths.R:79:2
    2. ├─SpaDES.core::spades(., debug = FALSE)
    3. └─SpaDES.core::spades(., debug = FALSE)
    4.   ├─base::withCallingHandlers(...)
    5.   └─SpaDES.core::doEvent(...)
    6.     └─SpaDES.core:::.runEvent(...)
    7.       ├─base::eval(fnCallAsExpr)
    8.       │ └─base::eval(fnCallAsExpr)
    9.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   10.         └─SpaDES.core Init(sim)
  ── Error (test-objectSynonyms.R:37:3): test objectSynonyms ─────────────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(sim, .plotInitialTime = NA, debug = FALSE) at test-objectSynonyms.R:37:2
   2. └─SpaDES.core::spades(sim, .plotInitialTime = NA, debug = FALSE)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-save.R:188:3): saveSimList does not work correctly ──────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
      ▆
   1. ├─SpaDES.core::spades(mySim) at test-save.R:188:2
   2. └─SpaDES.core::spades(mySim)
   3.   ├─base::withCallingHandlers(...)
   4.   └─SpaDES.core::doEvent(...)
   5.     └─SpaDES.core:::.runEvent(...)
   6.       ├─base::eval(fnCallAsExpr)
   7.       │ └─base::eval(fnCallAsExpr)
   8.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   9.         └─SpaDES.core Init(sim)
  ── Error (test-simList.R:207:3): simList object initializes correctly (2) ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'SpaDES.tools'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-simList.R:207:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-simulation.R:23:3): simulation runs with simInit and spades with set.seed; events arg ──
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─... %>% spades(debug = FALSE, .plotInitialTime = NA) at test-simulation.R:23:2
    2. ├─SpaDES.core::spades(., debug = FALSE, .plotInitialTime = NA)
    3. └─SpaDES.core::spades(., debug = FALSE, .plotInitialTime = NA)
    4.   ├─base::withCallingHandlers(...)
    5.   └─SpaDES.core::doEvent(...)
    6.     └─SpaDES.core:::.runEvent(...)
    7.       ├─base::eval(fnCallAsExpr)
    8.       │ └─base::eval(fnCallAsExpr)
    9.       └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   10.         └─SpaDES.core Init(sim)
  ── Error (test-simulation.R:193:5): spades calls - diff't signatures ───────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─base::assign(...) at test-simulation.R:193:4
    2. ├─base::system.time(spades(a, cache = TRUE, .plotInitialTime = NA))
    3. ├─SpaDES.core::spades(a, cache = TRUE, .plotInitialTime = NA)
    4. └─SpaDES.core::spades(a, cache = TRUE, .plotInitialTime = NA)
    5.   ├─base::do.call(...)
    6.   ├─reproducible `<nnstndGF>`(...)
    7.   └─reproducible `<nnstndGF>`(...)
    8.     ├─base::do.call(FUN, append(alist(...), mget(commonArgs, inherits = FALSE)))
    9.     ├─SpaDES.core `<nnstndGF>`(..., notOlderThan = NULL)
   10.     └─SpaDES.core `<nnstndGF>`(..., notOlderThan = NULL)
   11.       ├─base::withCallingHandlers(...)
   12.       └─SpaDES.core::doEvent(...)
   13.         └─SpaDES.core:::.runEvent(...)
   14.           ├─base::eval(fnCallAsExpr)
   15.           │ └─base::eval(fnCallAsExpr)
   16.           └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   17.             └─SpaDES.core Init(sim)
  ── Error (test-simulation.R:956:3): simInitAndSpades ───────────────────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. └─SpaDES.core::simInitAndSpades(...) at test-simulation.R:956:2
    2.   ├─base::do.call(spades, objsSpades)
    3.   ├─SpaDES.core `<nnstndGF>`(...)
    4.   └─SpaDES.core `<nnstndGF>`(...)
    5.     ├─base::withCallingHandlers(...)
    6.     └─SpaDES.core::doEvent(...)
    7.       └─SpaDES.core:::.runEvent(...)
    8.         ├─base::eval(fnCallAsExpr)
    9.         │ └─base::eval(fnCallAsExpr)
   10.         └─get(moduleCall, envir = fnEnv)(sim, cur[["eventTime"]], cur[["eventType"]])
   11.           └─SpaDES.core Init(sim)
  ── Error (test-simulation.R:1010:5): debug using logging ───────────────────────
  Error in `gaussMap(template, scale = 10, var = 0.03, speedup = speedup, 
      inMemory = inMemory)`: could not find function "gaussMap"
  Backtrace:
       ▆
    1. ├─testthat::capture_messages(...) at test-simulation.R:1010:4
    2. │ └─base::withCallingHandlers(...)
    3. ├─utils::capture.output(...) at test-simulation.R:1011:6
    4. │ └─base::withVisible(...elt(i))
    5. ├─SpaDES.core::spades(...) at test-simulation.R:1012:8
    6. └─SpaDES.core::spades(...)
    7.   ├─base::withCallingHandlers(...)
    8.   └─SpaDES.core::doEvent(...)
    9.     └─SpaDES.core:::.runEvent(...)
   10.       ├─base::eval(fnCallAsExpr)
   11.       │ └─base::eval(fnCallAsExpr)
   12.       ├─reproducible::Cache(...)
   13.       └─reproducible::Cache(...)
   14.         └─SpaDES.core FUN(...)
   15.           └─SpaDES.core Init(sim)
  
  [ FAIL 15 | WARN 45 | SKIP 22 | PASS 445 ]
  Error: Test failures
  Execution halted