Running ‘testthat.R’ [2s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(RABR)
  > 
  > test_check("RABR")
  Loading required package: foreach
  Loading required package: iterators
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 7 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_continuous.R:40:3'): Length of selected probabilities is the length of number of active treatment groups ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11159 cannot be opened
  Backtrace:
      ▆
   1. └─RABR::RABRcontinuous(...) at test_continuous.R:40:3
   2.   └─parallel::makeCluster(n.cluster)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  ── Error ('test_continuous.R:56:3'): Length of overall probability is 1 ────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11159 cannot be opened
  Backtrace:
      ▆
   1. └─RABR::RABRcontinuous(...) at test_continuous.R:56:3
   2.   └─parallel::makeCluster(n.cluster)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  ── Error ('test_continuous.R:72:3'): Length of ASN is the number of treatment groups ──
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11159 cannot be opened
  Backtrace:
      ▆
   1. └─RABR::RABRcontinuous(...) at test_continuous.R:72:3
   2.   └─parallel::makeCluster(n.cluster)
   3.     └─parallel::makePSOCKcluster(names = spec, ...)
   4.       └─base::serverSocket(port = port)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 7 ]
  Error: Test failures
  Execution halted