Running 'spelling.R' [0s]
  Running 'testthat.R' [113s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > 
  > test_check("retistruct")
  Loading required package: retistruct
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 156 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-format-ijroi.R:4:3): IJROI format with image is read correctly ──
  Error: object 'is.poisson' not found whilst loading namespace 'spatstat.linnet'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(retistruct.read.dataset(dataset), "Scale file \"scale.csv\" does not exist. Scale bar will not be set.") at test-format-ijroi.R:4:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─retistruct::retistruct.read.dataset(dataset)
    7. │ └─retistruct:::ijroi.read.dataset(dataset, report, ...)
    8. └─base::loadNamespace(x)
    9.   ├─base::namespaceImport(...)
   10.   └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   11.     ├─base::namespaceImport(...)
   12.     └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   13.       └─base::registerS3methods(nsInfo$S3methods, package, env)
   14.         └─base .registerS3method(...)
  ── Error (test-format-ijroi.R:20:5): IJROI format with data points and data counts is read correctly ──
  Error: object 'is.poisson' not found whilst loading namespace 'spatstat.linnet'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(retistruct.read.dataset(dataset), "Scale file \"scale.csv\" does not exist. Scale bar will not be set.") at test-format-ijroi.R:20:4
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─retistruct::retistruct.read.dataset(dataset)
    7. │ └─retistruct:::ijroi.read.dataset(dataset, report, ...)
    8. └─base::loadNamespace(x)
    9.   ├─base::namespaceImport(...)
   10.   └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   11.     ├─base::namespaceImport(...)
   12.     └─base::loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
   13.       └─base::registerS3methods(nsInfo$S3methods, package, env)
   14.         └─base .registerS3method(...)
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 156 ]
  Error: Test failures
  Execution halted