* using log directory 'd:/RCompile/CRANincoming/R-devel/svines.Rcheck' * using R Under development (unstable) (2025-01-10 r87562 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'svines/DESCRIPTION' ... OK * this is package 'svines' version '0.2.4' * package encoding: UTF-8 * checking CRAN incoming feasibility ... OK * 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 'svines' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.3.0' * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking examples ... ERROR Running examples in 'svines-Ex.R' failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: svine_bootstrap_models > ### Title: Bootstrap S-vine models > ### Aliases: svine_bootstrap_models > > ### ** Examples > > data(returns) > dat <- returns[1:100, 1:2] > > # fit parametric S-vine model with Markov order 1 > model <- svine(dat, p = 1, family_set = "parametric") > > # compute 10 bootstrap replicates of the model > boot_models <- svine_bootstrap_models(10, model) > > # compute bootstrap replicates of 90%-quantile of X_1 + X_2. > mu_boot <- sapply( + boot_models, + function(m) { + xx <- rowSums(t(svine_sim(1, 10^2, m, past = dat)[1, ,])) + quantile(xx, 0.9) + } + ) Error in quantile.default(xx, 0.9) : missing values and NaN's not allowed if 'na.rm' is FALSE Calls: sapply -> lapply -> FUN -> quantile -> quantile.default Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [10s] ERROR Running 'testthat.R' [10s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(svines) Loading required package: rvinecopulib > > test_check("svines") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 53 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-svine.R:100:3'): fitting models (multivariate) ─────────────── `fit` not equal to `fit2`. Component "copula": Component "pair_copulas": Component 1: Component 2: Component 3: Mean relative difference: 0.4962467 Component "copula": Component "pair_copulas": Component 1: Component 4: Component 3: Mean relative difference: 0.4962467 Component "copula": Component "pair_copulas": Component 1: Component 6: Component 3: Mean relative difference: 0.4962467 Component "copula": Component "pair_copulas": Component 2: Component 1: Component 3: Mean relative difference: 0.1354241 Component "copula": Component "pair_copulas": Component 2: Component 2: Component 3: Mean relative difference: 0.01119977 Component "copula": Component "pair_copulas": Component 2: Component 3: Component 3: Mean relative difference: 0.1354241 Component "copula": Component "pair_copulas": Component 2: Component 4: Component 3: Mean relative difference: 0.01119977 Component "copula": Component "pair_copulas": Component 2: Component 5: Component 3: Mean relative difference: 0.1354241 Component "copula": Component "pair_copulas": Component 2: Component 6: Component 3: Mean relative difference: 0.01119977 ... ── Failure ('test-svinecop.R:90:3'): fitting models (multivariate) ───────────── `sv` not equal to `sv2`. Component "pair_copulas": Component 1: Component 2: Component 3: Mean relative difference: 0.6469093 Component "pair_copulas": Component 1: Component 4: Component 3: Mean relative difference: 0.6469093 Component "pair_copulas": Component 1: Component 6: Component 3: Mean relative difference: 0.6469093 Component "pair_copulas": Component 2: Component 1: Component 3: Mean relative difference: 0.01876874 Component "pair_copulas": Component 2: Component 3: Component 3: Mean relative difference: 0.01876874 Component "pair_copulas": Component 2: Component 5: Component 3: Mean relative difference: 0.01876874 Component "pair_copulas": Component 4: Component 1: Component 3: Mean relative difference: 0.2659101 Component "pair_copulas": Component 4: Component 3: Component 3: Mean relative difference: 0.2659101 Component "pair_copulas": Component 5: Component 2: Component 3: Mean relative difference: 0.6945855 ... [ FAIL 2 | WARN 0 | SKIP 0 | PASS 53 ] Error: Test failures Execution halted * checking PDF version of manual ... [13s] OK * checking HTML version of manual ... OK * DONE Status: 2 ERRORs