* using log directory 'd:/Rcompile/CRANpkg/local/4.4/IBLM.Rcheck' * using R version 4.4.3 (2025-02-28 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 'IBLM/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'IBLM' version '1.0.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 'IBLM' can be installed ... OK * checking installed package size ... OK * 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 ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [8s] 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 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 examples ... [5s] ERROR Running examples in 'IBLM-Ex.R' failed The error most likely occurred in: > ### Name: beta_corrected_density > ### Title: Density Plot of Beta Corrections for a Variable > ### Aliases: beta_corrected_density > > ### ** Examples > > # This function is created inside explain_iblm() and is output as an item > > df_list <- freMTPLmini |> split_into_train_validate_test(seed = 9000) > > iblm_model <- train_iblm_xgb( + df_list, + response_var = "ClaimRate", + family = "poisson" + ) Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", : Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version. > > explain_objects <- explain_iblm(iblm_model, df_list$test) Error in predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), : [07:39:58] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3764 vs. 30112) : Calls: explain_iblm ... extract_booster_shap.xgb.Booster -> data.frame -> -> predict.xgb.Booster Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [14s] ERROR Running 'testthat.R' [13s] Running the tests in 'tests/testthat.R' failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(IBLM) > > test_check("IBLM") Saving _problems/test-explain_iblm-222.R Saving _problems/test-explain_iblm-247.R Saving _problems/test-explain_iblm-272.R Saving _problems/test-explain_iblm-300.R Saving _problems/test-explain_iblm-328.R Saving _problems/test-explain_iblm-361.R Saving _problems/test-explain_iblm-421.R Saving _problems/test-explain_iblm-454.R Saving _problems/test-explain_iblm-484.R Saving _problems/test-predict-32.R [ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-explain_iblm.R:4:3', 'test-get_pinball_scores.R:5:3', 'test-get_pinball_scores.R:85:3', 'test-train_iblm.R:6:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-explain_iblm.R:214:3'): test explain completes when one categorical and one continuous ── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:04] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 10977) : ── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:04] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 14636) : ── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:05] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 18295) : ── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:05] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 32931) : ── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:06] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 18295) : ── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ── Error in `predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), predcontrib = TRUE)`: [07:40:07] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) : Backtrace: ▆ 1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-explain_iblm.R:361:3 2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data) 3. └─IBLM:::extract_booster_shap.xgb.Booster(...) 4. ├─base::data.frame(...) 5. ├─stats::predict(...) 6. └─xgboost:::predict.xgb.Booster(...) ── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ──────────────── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:07] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) : ── Failure ('test-explain_iblm.R:445:3'): test gamma can run ─────────────────── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:08] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) : ── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ───────────────── Expected `{ ... }` not to throw any errors. Actually got a with message: [07:40:09] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) : ── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ── Error in `predict.xgb.Booster(booster_model, newdata = xgboost::xgb.DMatrix(data.matrix(data)), predcontrib = TRUE)`: [07:40:11] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast(1), std::multiplies<>{}) == chunksize * rows (3659 vs. 29272) : Backtrace: ▆ 1. └─IBLM::explain_iblm(iblm_model = IBLM, data = splits$test, migrate_reference_to_bias = TRUE) at test-predict.R:32:3 2. ├─IBLM::extract_booster_shap(iblm_model$booster_model, data) 3. └─IBLM:::extract_booster_shap.xgb.Booster(...) 4. ├─base::data.frame(...) 5. ├─stats::predict(...) 6. └─xgboost:::predict.xgb.Booster(...) [ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 2 ERRORs