* using log directory 'd:/Rcompile/CRANpkg/local/4.4/rvinecopulib.Rcheck' * using R version 4.4.2 (2024-10-31 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 'rvinecopulib/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'rvinecopulib' version '0.6.3.1.1' * 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 'rvinecopulib' can be installed ... OK * used C++ compiler: 'g++.exe (GCC) 13.3.0' * checking installed package size ... NOTE installed size is 10.5Mb sub-directories of 1Mb or more: include 5.0Mb libs 5.1Mb * checking package 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [6s] OK * checking Rd files ... [1s] 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 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 pragmas in C/C++ headers and code ... OK * checking compiled code ... OK * checking examples ... [15s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [11s] ERROR Running 'testthat.R' [11s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(rvinecopulib) > > > test_check("rvinecopulib") [ FAIL 2 | WARN 0 | SKIP 0 | PASS 302 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_discrete.R:95:3'): vine works ────────────────────────────────── Error in `levels(obj$x)[q + 1]`: only 0's may be mixed with negative subscripts Backtrace: ▆ 1. └─rvinecopulib::rvine(n * 10, fit) at test_discrete.R:95:3 2. └─rvinecopulib:::dpq_marg(U, vine, "q") 3. └─base::lapply(...) 4. └─rvinecopulib (local) FUN(X[[i]], ...) 5. └─rvinecopulib:::eval_one_dpq(x[, i], vine$margins[[i]], what) 6. └─kde1d::qkde1d(x, margin) 7. └─base::ordered(levels(obj$x)[q + 1], levels(obj$x)) 8. └─base::factor(x, ..., ordered = TRUE) ── Failure ('test_vine.R:57:3'): margins_controls works ──────────────────────── sapply(fit_mult$margins, "[[", "bw") not equal to 2/log(6) * sapply(fit$margins, "[[", "bw"). 5/5 mismatches (average diff: 0.112) [1] 0.799 - 0.892 == -0.0929 [2] 1.073 - 1.198 == -0.1247 [3] 0.711 - 0.794 == -0.0827 [4] 1.158 - 1.293 == -0.1346 [5] 1.060 - 1.183 == -0.1231 Backtrace: ▆ 1. └─rvinecopulib (local) expect_eql(...) at test_vine.R:57:3 2. └─testthat::expect_equal(..., check.environment = FALSE) at test_vine.R:2:15 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 302 ] Error: Test failures Execution halted * checking PDF version of manual ... [29s] OK * checking HTML version of manual ... [6s] OK * DONE Status: 1 ERROR, 1 NOTE