Running ‘testthat.R’ [44s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > if (require(testthat) & require(forecast)) {
  +   test_check("forecastHybrid")
  +   }
  Loading required package: testthat
  Loading required package: forecast
  Loading required package: forecastHybrid
  Loading required package: thief
  Hybrid forecast model comprised of the following models: auto.arima, ets, thetam, nnetar, tbats
  ############
  auto.arima with weight 0.2 
  ############
  ets with weight 0.2 
  ############
  thetam with weight 0.2 
  ############
  nnetar with weight 0.2 
  ############
  tbats with weight 0.2 
  Hybrid forecast model comprised of the following models: auto.arima, ets, thetam, nnetar, tbats
  ############
  auto.arima with weight 0.2 
  ############
  ets with weight 0.2 
  ############
  thetam with weight 0.2 
  ############
  nnetar with weight 0.2 
  ############
  tbats with weight 0.2 
  [ FAIL 7 | WARN 4 | SKIP 2 | PASS 202 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-cvts.R:51:3', 'test-forecast.hybridModel.R:26:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cvts.R:38:6'): Testing valid inputs ──────────────────────────
  `cvts(...)` threw an error.
  Message: creation of server socket failed: port 11111 cannot be opened
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-cvts.R:38:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─forecastHybrid::cvts(...)
   7.   └─parallel::makeForkCluster(num.cores)
   8.     └─base::serverSocket(port = port)
  ── Failure ('test-cvts.R:40:6'): Testing valid inputs ──────────────────────────
  `cvts(...)` threw an error.
  Message: creation of server socket failed: port 11111 cannot be opened
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-cvts.R:40:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─forecastHybrid::cvts(...)
   7.   └─parallel::makeForkCluster(num.cores)
   8.     └─base::serverSocket(port = port)
  ── Failure ('test-cvts.R:42:6'): Testing valid inputs ──────────────────────────
  `cvts(rnorm(94), saveModels = FALSE, saveForecasts = FALSE)` threw an error.
  Message: creation of server socket failed: port 11111 cannot be opened
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-cvts.R:42:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─forecastHybrid::cvts(rnorm(94), saveModels = FALSE, saveForecasts = FALSE)
   7.   └─parallel::makeForkCluster(num.cores)
   8.     └─base::serverSocket(port = port)
  ── Error ('test-cvts.R:47:5'): Testing accuracy.cvts() ─────────────────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11111 cannot be opened
  Backtrace:
      ▆
   1. └─forecastHybrid::cvts(inputSeries, windowSize = 4, maxHorizon = 2) at test-cvts.R:47:4
   2.   └─parallel::makeForkCluster(num.cores)
   3.     └─base::serverSocket(port = port)
  ── Error ('test-cvts_examples.R:7:5'): Testing skipped examples ────────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11111 cannot be opened
  Backtrace:
      ▆
   1. └─forecastHybrid::cvts(series, FCFUN = rwf, windowSize = 24, maxHorizon = 1) at test-cvts_examples.R:7:4
   2.   └─parallel::makeForkCluster(num.cores)
   3.     └─base::serverSocket(port = port)
  ── Error ('test-hybridModel.R:133:7'): Testing the hybridModel object ──────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11111 cannot be opened
  Backtrace:
      ▆
   1. └─forecastHybrid::hybridModel(...) at test-hybridModel.R:133:6
   2.   └─parallel::makeForkCluster(num.cores)
   3.     └─base::serverSocket(port = port)
  ── Error ('test-hybridModel.R:199:9'): Testing the weighting methods ───────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11111 cannot be opened
  Backtrace:
      ▆
   1. └─forecastHybrid::hybridModel(inputSeries, models = models, weights = weight) at test-hybridModel.R:199:8
   2.   └─forecastHybrid::cvts(...)
   3.     └─parallel::makeForkCluster(num.cores)
   4.       └─base::serverSocket(port = port)
  
  [ FAIL 7 | WARN 4 | SKIP 2 | PASS 202 ]
  Error: Test failures
  Execution halted