Running ‘spelling.R’
  Running ‘testthat.R’ [68s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("retistruct")
  Loading required package: retistruct
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-format-ijroi.R:4:3): IJROI format with image is read correctly ──
  Error: object 'marks<-' is not exported by 'namespace:spatstat'
  Backtrace:
       █
    1. ├─testthat::expect_warning(retistruct.read.dataset(dataset), "Scale file \"scale.csv\" does not exist. Scale bar will not be set.") 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::namespaceImportFrom(...)
   10.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error (test-format-ijroi.R:20:5): IJROI format with data points and data counts is read correctly ──
  Error: object 'marks<-' is not exported by 'namespace:spatstat'
  Backtrace:
       █
    1. ├─testthat::expect_warning(retistruct.read.dataset(dataset), "Scale file \"scale.csv\" does not exist. Scale bar will not be set.") 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::namespaceImportFrom(...)
   10.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 156 ]
  Error: Test failures
  Execution halted