* using log directory 'd:/Rcompile/CRANpkg/local/4.3/gmvarkit.Rcheck' * using R version 4.3.3 (2024-02-29 ucrt) * using platform: x86_64-w64-mingw32 (64-bit) * R was compiled by gcc.exe (GCC) 12.3.0 GNU Fortran (GCC) 12.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'gmvarkit/DESCRIPTION' ... OK * this is package 'gmvarkit' version '2.1.4' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'gmvarkit' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [25s] OK * checking Rd files ... [5s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [11s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [259s] ERROR 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [26s] OK * checking PDF version of manual ... [30s] OK * checking HTML version of manual ... [46s] OK * DONE Status: 1 ERROR