Running ‘test-all.R’ [293s/417s]
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
  
  [1] "/tmp/Rtmpuva4.G/fKy2xW"
  [1] "/tmp/Rtmpuva4.G/fKy2xW"
  [1] "/tmp/Rtmpuva4.G/fKy2xW"
  [1] "/tmp/Rtmpuva4.G/fKy2xW"
    Using cached copy of .inputObjects event in test module.   
  ── 1. Error: /tmp/RtmpURaG.c/R.INSTALL5f426634ad6/SpaDES.core/man/simList-access
  invalid 'description' argument
  1: read.csv(dir(tmpdir, pattern = "year10.csv", full.name = TRUE))
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  ── 2. Failure: experiment does not work correctly (@test-experiment.R#62)  ─────
  outputs(sims[[x]])$file not equal to `%>%`(...).
  2/2 mismatches
  x[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep1/landscape_year2"
  y[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep1/landscape_year2.rds"
  
  x[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep1/caribou_year2"
  y[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep1/caribou_year2.rds"
  
  ── 3. Failure: experiment does not work correctly (@test-experiment.R#62)  ─────
  outputs(sims[[x]])$file not equal to `%>%`(...).
  2/2 mismatches
  x[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep2/landscape_year2"
  y[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep2/landscape_year2.rds"
  
  x[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep2/caribou_year2"
  y[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep2/caribou_year2.rds"
  
  ── 4. Failure: experiment does not work correctly (@test-experiment.R#62)  ─────
  outputs(sims[[x]])$file not equal to `%>%`(...).
  2/2 mismatches
  x[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep3/landscape_year2"
  y[1]: "/tmp/Rtmpuva4.G/mbYa0b/rep3/landscape_year2.rds"
  
  x[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep3/caribou_year2"
  y[2]: "/tmp/Rtmpuva4.G/mbYa0b/rep3/caribou_year2.rds"
  
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  [1] "/tmp/Rtmpuva4.G/mbYa0b"
  ── 5. Error: experiment does not work correctly (@test-experiment.R#104)  ──────
  replacement has length zero
  1: experiment(mySimNoRL, replicates = 2, inputs = lapply(landscapeFiles, function(filenames) {
         data.frame(file = filenames, loadTime = 0, objectName = "landscape", stringsAsFactors = FALSE)
     })) at testthat/test-experiment.R:104
  2: experiment(mySimNoRL, replicates = 2, inputs = lapply(landscapeFiles, function(filenames) {
         data.frame(file = filenames, loadTime = 0, objectName = "landscape", stringsAsFactors = FALSE)
     }))
  3: get(parFun)(cl = cl, numToDo, FunDef, sim = sim, factorialExp = factorialExp, modules = modules, 
         params = params, dirPrefix = dirPrefix, numExpLevels = numExpLevels, substrLength = substrLength, 
         replicates = replicates, inputs = inputs, objects = objects, ...)
  4: FUN(X[[i]], ...)
  5: SpaDES.core::`inputs<-`(`*tmp*`, value = inputs[[factorialExp[ind, "input"]]])
  6: SpaDES.core::`inputs<-`(`*tmp*`, value = inputs[[factorialExp[ind, "input"]]])
  7: .fillInputRows(value, start(sim))
  
  ── 6. Failure: saving files does not work correctly (@test-save.R#33)  ─────────
  file.exists(file.path(tmpdir, "caribou_month1.rds")) isn't true.
  
  ── 7. Failure: saving files does not work correctly (@test-save.R#37)  ─────────
  file.exists(file.path(tmpdir, "caribou_month3.rds")) isn't true.
  
  ── 8. Failure: saving files does not work correctly (@test-save.R#38)  ─────────
  file.exists(file.path(tmpdir, "caribou_month5.rds")) isn't true.
  
  ── 9. Failure: saving files does not work correctly (@test-save.R#56)  ─────────
  file.exists(file.path(tmpdir, "caribou_month7.rds")) isn't true.
  
  ── 10. Failure: saving files does not work correctly (@test-save.R#57)  ────────
  file.exists(file.path(tmpdir, "landscape_month7.rds")) isn't true.
  
  ── 11. Error: saving csv files does not work correctly (@test-save.R#86)  ──────
  invalid 'description' argument
  1: read.csv(dir(tmpdir, pattern = "year10.csv", full.name = TRUE)) at testthat/test-save.R:86
  2: read.table(file = file, header = header, sep = sep, quote = quote, dec = dec, fill = fill, 
         comment.char = comment.char, ...)
  3: file(file, "rt")
  
  [1] "/tmp/Rtmpuva4.G/nz4yC8"
  [1] "/tmp/Rtmpuva4.G/nz4yC8"
    Using cached copy of .inputObjects event in child6 module.   
    Using memoised copy of .inputObjects event in child6 module
    Using memoised copy of .inputObjects event in child6 module
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 446 SKIPPED: 33 FAILED: 11
  1. Error: /tmp/RtmpURaG.c/R.INSTALL5f426634ad6/SpaDES.core/man/simList-accessors-inout.Rd 
  2. Failure: experiment does not work correctly (@test-experiment.R#62) 
  3. Failure: experiment does not work correctly (@test-experiment.R#62) 
  4. Failure: experiment does not work correctly (@test-experiment.R#62) 
  5. Error: experiment does not work correctly (@test-experiment.R#104) 
  6. Failure: saving files does not work correctly (@test-save.R#33) 
  7. Failure: saving files does not work correctly (@test-save.R#37) 
  8. Failure: saving files does not work correctly (@test-save.R#38) 
  9. Failure: saving files does not work correctly (@test-save.R#56) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted