Last updated on 2025-12-07 07:50:34 CET.
| Package | ERROR | OK |
|---|---|---|
| IBLM | 5 | 8 |
Current CRAN status: ERROR: 5, OK: 8
Version: 1.0.1
Check: package dependencies
Result: ERROR
Package required but not available: ‘ggExtra’
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.0.1
Check: examples
Result: 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 xgboost::xgb.DMatrix(data.matrix(data)) :
[10:42:21] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7fc1ebe13b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7fc1ebf6c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7fc1ec1d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7fc1ebe096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x5610a62266f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x5610a6275470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x5610a625e2ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x5610a625da35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x5610a627ae29]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [19s/26s]
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 <simpleError> with message:
[10:42:38] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:39] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:39] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:40] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:41] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [10:42:42] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:42] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:43] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[10:42:44] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [10:42:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x13b82) [0x7f92b9213b82]
[bt] (1) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(+0x16c3cb) [0x7f92b936c3cb]
[bt] (2) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0xe2) [0x7f92b95d8e12]
[bt] (3) /data/gannet/ripley/R/test-clang/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x232) [0x7f92b92096a2]
[bt] (4) /data/gannet/ripley/R/R-clang/bin/exec/R(+0x8e6f3) [0x562a0de1e6f3]
[bt] (5) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xdd470) [0x562a0de6d470]
[bt] (6) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xc62ac) [0x562a0de562ac]
[bt] (7) /data/gannet/ripley/R/R-clang/bin/exec/R(Rf_eval+0x1a5) [0x562a0de55a35]
[bt] (8) /data/gannet/ripley/R/R-clang/bin/exec/R(+0xe2e29) [0x562a0de72e29]
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.0.1
Check: examples
Result: 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 xgboost::xgb.DMatrix(data.matrix(data)) :
[11:24:52] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f204d44e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f204d677988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f204d9770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f204d443865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [42s/131s]
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 <simpleError> with message:
[11:25:32] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:25:41] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:25:48] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:25:54] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:26:00] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [11:26:12] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:26:20] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:26:25] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[11:26:33] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [11:27:02] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x4e866) [0x7f5c31e4e866]
[bt] (1) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(+0x277988) [0x7f5c32077988]
[bt] (2) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x163) [0x7f5c323770b3]
[bt] (3) /data/gannet/ripley/R/test-dev/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x265) [0x7f5c31e43865]
[bt] (4) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4a1a19]
[bt] (5) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e6165]
[bt] (6) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4e3e7b]
[bt] (7) /data/gannet/ripley/R/R-devel/bin/exec/R(Rf_eval+0x17b) [0x4d1efb]
[bt] (8) /data/gannet/ripley/R/R-devel/bin/exec/R() [0x4d74ee]
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in ‘IBLM-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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 xgboost::xgb.DMatrix(data.matrix(data)) :
[05:53:41] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f4b19479e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f4b19676a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f4b1991ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f4b19470405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f4b34b0295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f4b34b47213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f4b34b4f136]
[bt]
Calls: explain_iblm ... data.frame -> <Anonymous> -> predict.xgb.Booster -> <Anonymous>
Execution halted
Flavor: r-release-linux-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/14s]
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 <simpleError> with message:
[05:53:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:239:3'): test explain completes when categorical only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:47] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:264:3'): test explain completes when continuous only ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:48] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:292:3'): test explain completes when logical field ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:49] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:320:3'): test explain completes when no reference/zero levels ──
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:50] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Error ('test-explain_iblm.R:361:3'): test migrate-to-bias vs non-migrate-to-bias options ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [05:53:51] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
── Failure ('test-explain_iblm.R:413:3'): test gaussian can run ────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:51] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:445:3'): test gamma can run ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:53] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Failure ('test-explain_iblm.R:475:3'): test tweedie can run ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <simpleError> with message:
[05:53:53] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
── Error ('test-predict.R:32:3'): test corrected beta coeffecient predictions are same as predict iblm() ──
Error in `xgboost::xgb.DMatrix(data.matrix(data))`: [05:53:56] src/data/../collective/../data/array_interface.h:422: Check failed: ptr % alignment == 0 (1 vs. 0) : Input pointer misalignment.
Stack trace:
[bt] (0) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x79e49) [0x7f9747a79e49]
[bt] (1) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(+0x276a1d) [0x7f9747c76a1d]
[bt] (2) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromDense+0x14e) [0x7f9747f1ee1e]
[bt] (3) /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/xgboost/libs/xgboost.so(XGDMatrixCreateFromMat_R+0x215) [0x7f9747a70405]
[bt] (4) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x10295e) [0x7f976330295e]
[bt] (5) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x147213) [0x7f9763347213]
[bt] (6) /home/hornik/tmp/R.check/r-release-gcc/Work/build/lib/libR.so(+0x14f136) [0x7f976334f136]
[bt] (7) /ho
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(...)
7. └─xgboost::xgb.DMatrix(data.matrix(data))
[ FAIL 10 | WARN 12 | SKIP 4 | PASS 2 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 1.0.1
Check: examples
Result: 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<bst_ulong>(1), std::multiplies<>{}) == chunksize * rows (3764 vs. 30112) :
Calls: explain_iblm ... extract_booster_shap.xgb.Booster -> data.frame -> <Anonymous> -> predict.xgb.Booster
Execution halted
Flavor: r-oldrel-windows-x86_64
Version: 1.0.1
Check: tests
Result: 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 <simpleError> with message:
[07:40:04] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:04] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:05] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:05] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:06] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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<bst_ulong>(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 <simpleError> with message:
[07:40:07] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:08] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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 <simpleError> with message:
[07:40:09] src/c_api/c_api_utils.h:127: Check failed: std::accumulate(shape.cbegin(), shape.cend(), static_cast<bst_ulong>(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<bst_ulong>(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
Flavor: r-oldrel-windows-x86_64