Running 'testthat.R' [40s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(TDApplied)
  > 
  > test_check("TDApplied")
  [ FAIL 7 | WARN 0 | SKIP 5 | PASS 154 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • T is TRUE (5): 'test-python.R:7:3', 'test-python.R:19:3',
    'test-python.R:43:3', 'test-python.R:78:3', 'test-python.R:90:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-kernel.R:105:3'): gram_matrix is computing correctly ───────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-kernel.R:105:3
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─TDApplied::gram_matrix(...)
   5.   └─TDApplied::distance_matrix(...)
   6.     └─parallel::makeCluster(num_workers)
   7.       └─parallel::makePSOCKcluster(names = spec, ...)
   8.         └─base::serverSocket(port = port)
  ── Error ('test-kmeans.R:5:3'): diagram_kkmeans detects incorrect parameters correctly ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-kmeans.R:5:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─TDApplied::diagram_kkmeans(...)
    8.   └─TDApplied::gram_matrix(...)
    9.     └─TDApplied::distance_matrix(...)
   10.       └─parallel::makeCluster(num_workers)
   11.         └─parallel::makePSOCKcluster(names = spec, ...)
   12.           └─base::serverSocket(port = port)
  ── Error ('test-kmeans.R:48:3'): diagram_kkmeans is computing correctly ────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. └─TDApplied::diagram_kkmeans(...) at test-kmeans.R:48:3
   2.   └─TDApplied::gram_matrix(...)
   3.     └─TDApplied::distance_matrix(...)
   4.       └─parallel::makeCluster(num_workers)
   5.         └─parallel::makePSOCKcluster(names = spec, ...)
   6.           └─base::serverSocket(port = port)
  ── Error ('test-kmeans.R:121:3'): diagram_kkmeans can accept a precomputed Gram matrix ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. └─TDApplied::gram_matrix(...) at test-kmeans.R:121:3
   2.   └─TDApplied::distance_matrix(...)
   3.     └─parallel::makeCluster(num_workers)
   4.       └─parallel::makePSOCKcluster(names = spec, ...)
   5.         └─base::serverSocket(port = port)
  ── Error ('test-kmeans.R:166:3'): predict_diagram_kkmeans detects incorrect parameters correctly ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. └─TDApplied::diagram_kkmeans(...) at test-kmeans.R:166:3
   2.   └─TDApplied::gram_matrix(...)
   3.     └─TDApplied::distance_matrix(...)
   4.       └─parallel::makeCluster(num_workers)
   5.         └─parallel::makePSOCKcluster(names = spec, ...)
   6.           └─base::serverSocket(port = port)
  ── Error ('test-kmeans.R:208:3'): predict_diagram_kkmeans is computing correctly ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. └─TDApplied::diagram_kkmeans(...) at test-kmeans.R:208:3
   2.   └─TDApplied::gram_matrix(...)
   3.     └─TDApplied::distance_matrix(...)
   4.       └─parallel::makeCluster(num_workers)
   5.         └─parallel::makePSOCKcluster(names = spec, ...)
   6.           └─base::serverSocket(port = port)
  ── Error ('test-pca.R:24:3'): diagram_kpca is computing correctly ──────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11871 cannot be opened
  Backtrace:
      ▆
   1. └─TDApplied::diagram_kpca(...) at test-pca.R:24:3
   2.   └─TDApplied::gram_matrix(...)
   3.     └─TDApplied::distance_matrix(...)
   4.       └─parallel::makeCluster(num_workers)
   5.         └─parallel::makePSOCKcluster(names = spec, ...)
   6.           └─base::serverSocket(port = port)
  
  [ FAIL 7 | WARN 0 | SKIP 5 | PASS 154 ]
  Error: Test failures
  Execution halted