Running ‘testthat.R’ [19s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > suppressPackageStartupMessages(library(LOMAR))
  > 
  > test_check("LOMAR")
  Saving _problems/test-TDA-8.R
  Saving _problems/test-TDA-14.R
  Saving _problems/test-utils-35.R
  Saving _problems/test-utils-42.R
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 15 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-TDA.R:8:3'): Persistence diagrams can be computed ──────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11980 cannot be opened
  Backtrace:
      ▆
   1. └─LOMAR::get_persistence_diagrams(PS, maxdimension = 1, maxscale = 100) at test-TDA.R:8:3
   2.   └─parallel::makeCluster(ncpu, type = cluster.type)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  ── Error ('test-TDA.R:14:3'): Sliced Wasserstein distance matrix can be computed ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11980 cannot be opened
  Backtrace:
      ▆
   1. └─LOMAR::get_persistence_diagrams(PS[1:20], maxdimension = 1, maxscale = 100) at test-TDA.R:14:3
   2.   └─parallel::makeCluster(ncpu, type = cluster.type)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  ── Error ('test-utils.R:35:3'): Image can be generated from localizations by photon method ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11980 cannot be opened
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-utils.R:35:3
   2. │ └─base::withCallingHandlers(...)
   3. └─LOMAR::points2img(...)
   4.   └─parallel::makeCluster(ncpu)
   5.     └─parallel::makePSOCKcluster(names = spec, ...)
   6.       └─base::serverSocket(port = port)
  ── Error ('test-utils.R:42:3'): Circle Hough transform works ───────────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11980 cannot be opened
  Backtrace:
      ▆
   1. └─LOMAR::circle_hough_transform(img, rmin = 5, rmax = 5, threshold = 0.4) at test-utils.R:42:3
   2.   └─parallel::makeCluster(ncpu)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 15 ]
  Error:
  ! Test failures.
  Execution halted