CRAN Package Check Results for Package xgboost

Last updated on 2025-12-06 00:49:06 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.7.11.1 485.72 314.91 800.63 OK
r-devel-linux-x86_64-debian-gcc 3.1.2.1 675.94 80.38 756.32 ERROR
r-devel-linux-x86_64-fedora-clang 3.1.2.1 900.00 1050.94 1950.94 OK
r-devel-linux-x86_64-fedora-gcc 3.1.2.1 660.00 1676.61 2336.61 OK
r-devel-windows-x86_64 1.7.11.1 599.00 292.00 891.00 OK
r-patched-linux-x86_64 1.7.11.1 576.66 288.46 865.12 OK
r-release-linux-x86_64 1.7.11.1 579.95 296.68 876.63 OK
r-release-macos-arm64 3.1.2.1 41.00 49.00 90.00 OK
r-release-macos-x86_64 3.1.2.1 300.00 218.00 518.00 OK
r-release-windows-x86_64 1.7.11.1 636.00 302.00 938.00 OK
r-oldrel-macos-arm64 3.1.2.1 41.00 60.00 101.00 NOTE
r-oldrel-macos-x86_64 3.1.2.1 320.00 216.00 536.00 NOTE
r-oldrel-windows-x86_64 3.1.2.1 777.00 258.00 1035.00 NOTE

Additional issues

rchk

Check Details

Version: 3.1.2.1
Check: package dependencies
Result: WARN Cannot process vignettes Packages suggested but not available for checking: 'knitr', 'rmarkdown', 'DiagrammeR', 'DiagrammeRsvg', 'htmlwidgets', 'Ckmeans.1d.dp' VignetteBuilder package required for checking but not installed: ‘knitr’ Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1.2.1
Check: examples
Result: ERROR Running examples in ‘xgboost-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: xgb.ggplot.importance > ### Title: Plot feature importance > ### Aliases: xgb.ggplot.importance xgb.plot.importance > > ### ** Examples > > data(agaricus.train) > > ## Keep the number of threads to 2 for examples > nthread <- 2 > data.table::setDTthreads(nthread) > > model <- xgboost( + agaricus.train$data, factor(agaricus.train$label), + nrounds = 2, + max_depth = 3, + nthreads = nthread + ) > > importance_matrix <- xgb.importance(model) > xgb.plot.importance( + importance_matrix, rel_to_first = TRUE, xlab = "Relative importance" + ) > > gg <- xgb.ggplot.importance( + importance_matrix, measure = "Frequency", rel_to_first = TRUE + ) Error: Ckmeans.1d.dp package is required Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [23s/20s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(xgboost) > library(Matrix) > > test_check("xgboost", reporter = ProgressReporter) ✔ | F W S OK | Context ⠏ | 0 | basic ⠏ | 0 | basic functions ⠼ | 5 | basic functions ⠇ | 29 | basic functions ⠏ | 40 | basic functions ⠴ | 56 | basic functions ⠏ | 70 | basic functions ⠙ | 72 | basic functions ⠹ | 83 | basic functions ⠋ | 91 | basic functions ⠴ | 96 | basic functions ⠇ | 109 | basic functions ⠏ | 120 | basic functions ⠹ | 133 | basic functions ⠴ | 146 | basic functions ✔ | 156 | basic functions [5.3s] ⠏ | 0 | booster_slicing ⠏ | 0 | testing xgb.Booster slicing ⠦ | 7 | testing xgb.Booster slicing ⠙ | 22 | testing xgb.Booster slicing ✔ | 23 | testing xgb.Booster slicing ⠏ | 0 | callbacks ⠏ | 0 | callbacks ⠹ | 13 | callbacks ⠙ | 32 | callbacks ⠹ | 43 | callbacks ⠧ | 58 | callbacks ⠼ | 75 | callbacks ⠼ | 85 | callbacks ⠹ | 93 | callbacks ⠇ | 99 | callbacks ⠹ | 113 | callbacks ✔ | 114 | callbacks [1.1s] ⠏ | 0 | config ⠏ | 0 | Test global configuration ✔ | 8 | Test global configuration ⠏ | 0 | custom_objective ⠏ | 0 | Test models with custom objective ⠼ | 5 | Test models with custom objective ✔ | 18 | Test models with custom objective ⠏ | 0 | dmatrix ⠏ | 0 | testing xgb.DMatrix functionality [13:36:10] WARNING: src/data/data.cc:937: Text file input has been deprecated since 3.1 ⠇ | 19 | testing xgb.DMatrix functionality ⠼ | 45 | testing xgb.DMatrix functionality ⠦ | 67 | testing xgb.DMatrix functionality ⠼ | 85 | testing xgb.DMatrix functionality ⠹ | 93 | testing xgb.DMatrix functionality ⠸ | 124 | testing xgb.DMatrix functionality ✔ | 143 | testing xgb.DMatrix functionality ⠏ | 0 | feature_weights ⠏ | 0 | feature weights ⠹ | 3 | feature weights ✔ | 4 | feature weights ⠏ | 0 | glm ⠏ | 0 | Test generalized linear models ⠦ | 7 | Test generalized linear models ⠏ | 10 | Test generalized linear models ✔ | 13 | Test generalized linear models ⠏ | 0 | helpers ⠏ | 0 | Test helper functions ⠋ | 1 | Test helper functions ⠙ | 42 | Test helper functions ⠴ | 136 | Test helper functions ⠼ | 215 | Test helper functions ⠦ | 277 | Test helper functions ⠋ | 401 | Test helper functions ⠋ | 471 | Test helper functions ⠦ | 587 | Test helper functions ⠼ | 665 | Test helper functions ⠦ | 1 676 | Test helper functions ⠦ | 2 685 | Test helper functions ⠙ | 4 688 | Test helper functions ⠇ | 4 705 | Test helper functions ⠹ | 4 709 | Test helper functions ⠧ | 4 734 | Test helper functions ✖ | 4 779 | Test helper functions [2.8s] ──────────────────────────────────────────────────────────────────────────────── Error ('test_helpers.R:355:3'): xgb.importance works with and without feature names Error: Ckmeans.1d.dp package is required Backtrace: ▆ 1. └─xgboost::xgb.ggplot.importance(importance_matrix = importance.Tree) at test_helpers.R:355:3 Error ('test_helpers.R:410:3'): xgb.importance works with GLM model Error: Ckmeans.1d.dp package is required Backtrace: ▆ 1. └─xgboost::xgb.ggplot.importance(importance.GLM) at test_helpers.R:410:3 Error ('test_helpers.R:452:3'): xgb.plot.tree works with and without feature names Error: The DiagrammeR package is required for xgb.plot.tree Backtrace: ▆ 1. ├─testthat::expect_silent(xgb.plot.tree(model = bst.Tree.unnamed)) at test_helpers.R:452:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─xgboost::xgb.plot.tree(model = bst.Tree.unnamed) Error ('test_helpers.R:471:3'): xgb.plot.multi.trees works with and without feature names Error in `xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3)`: DiagrammeR is required for xgb.plot.multi.trees Backtrace: ▆ 1. └─xgboost::xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3) at test_helpers.R:471:3 ──────────────────────────────────────────────────────────────────────────────── ⠏ | 0 | interaction_constraints ⠏ | 0 | interaction constraints ⠙ | 2 | interaction constraints ✔ | 2 | interaction constraints [2.7s] ⠏ | 0 | interactions ⠏ | 0 | Test prediction of feature interactions ⠸ | 4 | Test prediction of feature interactions ⠧ | 18 | Test prediction of feature interactions ✔ | 19 | Test prediction of feature interactions ⠏ | 0 | io ⠏ | 0 | Test model IO. ✔ | 5 | Test model IO. ⠏ | 0 | model_compatibility ⠏ | 0 | Models from previous versions of XGBoost can be loaded ⠋ | 1 | Models from previous versions of XGBoost can be loaded ⠦ | 37 | Models from previous versions of XGBoost can be loaded ⠴ | 96 | Models from previous versions of XGBoost can be loaded ✔ | 146 | Models from previous versions of XGBoost can be loaded [2.2s] ⠏ | 0 | monotone ⠏ | 0 | monotone constraints ✔ | 1 | monotone constraints ⠏ | 0 | parameter_exposure ⠏ | 0 | Test model params and call are exposed to R ✔ | 6 | Test model params and call are exposed to R ⠏ | 0 | poisson_regression ⠏ | 0 | Test Poisson regression model ✔ | 6 | Test Poisson regression model ⠏ | 0 | ranking ⠏ | 0 | Learning to rank ✔ | 14 | Learning to rank ⠏ | 0 | unicode ⠏ | 0 | Test Unicode handling ✔ | 3 | Test Unicode handling ⠏ | 0 | update ⠏ | 0 | update trees in an existing model ⠋ | 1 | update trees in an existing model ⠋ | 11 | update trees in an existing model ✔ | 26 | update trees in an existing model ⠏ | 0 | xgboost ⠏ | 50 | xgboost ⠧ | 88 | xgboost ⠼ | 105 | xgboost ⠧ | 138 | xgboost ⠼ | 175 | xgboost ⠏ | 210 | xgboost ⠇ | 269 | xgboost ⠸ | 344 | xgboost ✔ | 369 | xgboost [1.1s] ══ Results ═════════════════════════════════════════════════════════════════════ Duration: 18.1 s ── Failed tests ──────────────────────────────────────────────────────────────── Error ('test_helpers.R:355:3'): xgb.importance works with and without feature names Error: Ckmeans.1d.dp package is required Backtrace: ▆ 1. └─xgboost::xgb.ggplot.importance(importance_matrix = importance.Tree) at test_helpers.R:355:3 Error ('test_helpers.R:410:3'): xgb.importance works with GLM model Error: Ckmeans.1d.dp package is required Backtrace: ▆ 1. └─xgboost::xgb.ggplot.importance(importance.GLM) at test_helpers.R:410:3 Error ('test_helpers.R:452:3'): xgb.plot.tree works with and without feature names Error: The DiagrammeR package is required for xgb.plot.tree Backtrace: ▆ 1. ├─testthat::expect_silent(xgb.plot.tree(model = bst.Tree.unnamed)) at test_helpers.R:452:3 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─xgboost::xgb.plot.tree(model = bst.Tree.unnamed) Error ('test_helpers.R:471:3'): xgb.plot.multi.trees works with and without feature names Error in `xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3)`: DiagrammeR is required for xgb.plot.multi.trees Backtrace: ▆ 1. └─xgboost::xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3) at test_helpers.R:471:3 [ FAIL 4 | WARN 0 | SKIP 0 | PASS 1855 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1.2.1
Check: package vignettes
Result: NOTE Package has ‘vignettes’ subdirectory but apparently no vignettes. Perhaps the ‘VignetteBuilder’ information is missing from the DESCRIPTION file? Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1.2.1
Check: HTML version of manual
Result: NOTE Skipping checking math rendering: package 'V8' unavailable Flavor: r-devel-linux-x86_64-debian-gcc

Version: 3.1.2.1
Check: installed package size
Result: NOTE installed size is 100.2Mb sub-directories of 1Mb or more: doc 1.1Mb libs 98.5Mb Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64

Version: 3.1.2.1
Check: for GNU extensions in Makefiles
Result: NOTE GNU make is a SystemRequirements. Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64