Running 'testthat.R' [124s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gmvarkit)
  > 
  > test_check("gmvarkit")
  Using 2 cores to estimate 2 GIRFs for 2 structural shocks, each based on 2 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate one GIRF for 1 structural shocks, each based on 1 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate 1 GIRFs for 2 structural shocks, each based on 1 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate 1 GIRFs for 2 structural shocks, each based on 1 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate 2 GIRFs for 2 structural shocks, each based on 2 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate one GIRF for 1 structural shocks, each based on 1 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Finished!
  Using 2 cores to estimate 6 GIRFs for 2 structural shocks, each based on 2 Monte Carlo repetitions. 
  Using 1 cores for 1 estimations rounds... 
  Using 1 cores for 2 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Calculating approximate standard errors...
  Finished!
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1548 ]
  
  == Failed tests ================================================================
  -- Error (test_GIRFandGFEVD.R:26:1): (code run outside of `test_that()`) -------
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11763 cannot be opened
  Backtrace:
      x
   1. \-gmvarkit::GIRF(...) at test_GIRFandGFEVD.R:26:0
   2.   \-parallel::makeCluster(ncores)
   3.     \-parallel::makePSOCKcluster(names = spec, ...)
   4.       \-base::serverSocket(port = port)
  -- Error (test_MAINest.R:5:4): fitGSMVAR does not throw errors -----------------
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11763 cannot be opened
  Backtrace:
      x
   1. +-base::suppressMessages(...) at test_MAINest.R:5:3
   2. | \-base::withCallingHandlers(...)
   3. \-gmvarkit::fitGSMVAR(...)
   4.   \-parallel::makeCluster(ncores)
   5.     \-parallel::makePSOCKcluster(names = spec, ...)
   6.       \-base::serverSocket(port = port)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1548 ]
  Error: Test failures
  Execution halted