Running 'testthat.R' [259s]
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. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate 5 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 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 3 GIRFs for 2 structural shocks, each based on 4 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 49 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 10 GIRFs for 2 structural shocks, each based on 5 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 2 cores to estimate one GIRF for 2 structural shocks, each based on 6 Monte Carlo repetitions. 
  Using 1 cores for 1 estimations rounds... 
  The log-likelihood of the supplied model:    -247.495 
  Constrained log-likelihood prior estimation: -283.263 
  
  Using 1 cores for 1 estimations rounds... 
  Optimizing with a genetic algorithm...
  Results from the genetic algorithm:
  The lowest loglik:  -249.595 
  The mean loglik:    -249.595 
  The largest loglik: -249.595 
  Optimizing with a variable metric algorithm...
  Results from the variable metric algorithm:
  The lowest loglik:  -247.65 
  The mean loglik:    -247.65 
  The largest loglik: -247.65 
  Filtering inappropriate estimates...
  Calculating approximate standard errors...
  Finished!
  The log-likelihood of the supplied model:    -299.858 
  Constrained log-likelihood prior estimation: -299.86 
  
  Using 1 cores for 1 estimations rounds... 
  Optimizing with a genetic algorithm...
  Results from the genetic algorithm:
  The lowest loglik:  -299.86 
  The mean loglik:    -299.86 
  The largest loglik: -299.86 
  Optimizing with a variable metric algorithm...
  Results from the variable metric algorithm:
  The lowest loglik:  -299.858 
  The mean loglik:    -299.858 
  The largest loglik: -299.858 
  Filtering inappropriate estimates...
  Calculating approximate standard errors...
  Finished!
  Using 1 cores for 2 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Filtering inappropriate estimates...
  Calculating approximate standard errors...
  Finished!
  Using 1 cores for 2 bootstrap replications... 
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1837 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_GIRFandGFEVD.R:132:3'): GFEVD works correctly ──────────────────
  Error in `serverSocket(port = port)`: creation of server socket failed: port 11898 cannot be opened
  Backtrace:
      ▆
   1. └─gmvarkit::GFEVD(...) at test_GIRFandGFEVD.R:132:3
   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 11898 cannot be opened
  Backtrace:
      ▆
   1. ├─base::suppressMessages(...) at test_MAINest.R:5:4
   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 1837 ]
  Error: Test failures
  Execution halted