Running ‘testthat.R’ [152s/407s]
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 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. 
  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 2 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 3 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 2 Monte Carlo repetitions. 
  Estimating GIRFs for structural shock 1... 
  Estimating GIRFs for structural shock 2... 
  Finished!
  Using 1 cores for 1 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Calculating approximate standard errors...
  Finished!
  Using 1 cores for 1 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Calculating approximate standard errors...
  Finished!
  Using 1 cores for 1 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Calculating approximate standard errors...
  Finished!
  Using 1 cores for 2 estimations rounds... 
  Optimizing with a genetic algorithm...
  Optimizing with a variable metric algorithm...
  Calculating approximate standard errors...
  Finished!
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1586 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_uncondMoments.R:786:3): VAR_pcovmat works correctly ─────────────
  Error in `solve.default(Amat, gamMixTemp)`: system is computationally singular: reciprocal condition number = 0
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_uncondMoments.R:786:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─gmvarkit:::VAR_pcovmat(...)
   5.   ├─base::array(...)
   6.   ├─base::array(solve(Amat, gamMixTemp), dim = c(d, d, p + 1))
   7.   ├─base::solve(Amat, gamMixTemp)
   8.   └─base::solve.default(Amat, gamMixTemp)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 1586 ]
  Error: Test failures
  Execution halted