* using log directory 'd:/Rcompile/CRANpkg/local/4.4/bundle.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 'bundle/DESCRIPTION' ... OK * this is package 'bundle' version '0.1.2' * 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 'bundle' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 ... [3s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [10s] ERROR Running examples in 'bundle-Ex.R' failed The error most likely occurred in: > ### Name: bundle.model_fit > ### Title: Bundle a parsnip 'model_fit' object > ### Aliases: bundle.model_fit bundle_model_fit > > ### ** Examples > > ## Don't show: > if (rlang::is_installed("parsnip") && rlang::is_installed("xgboost")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + # fit model and bundle ------------------------------------------------ + library(parsnip) + library(xgboost) + + set.seed(1) + + mod <- + boost_tree(trees = 5, mtry = 3) %>% + set_mode("regression") %>% + set_engine("xgboost") %>% + fit(mpg ~ ., data = mtcars) + + mod_bundle <- bundle(mod) + + # then, after saveRDS + readRDS or passing to a new session ---------- + mod_unbundled <- unbundle(mod_bundle) + + mod_unbundled_preds <- predict(mod_unbundled, new_data = mtcars) + ## Don't show: + }) # examplesIf > library(parsnip) > library(xgboost) > set.seed(1) > mod <- boost_tree(trees = 5, mtry = 3) %>% set_mode("regression") %>% + set_engine("xgboost") %>% fit(mpg ~ ., data = mtcars) > mod_bundle <- bundle(mod) > mod_unbundled <- unbundle(mod_bundle) Error in xgboost::xgb.load.raw(object, as_booster = TRUE) : unused argument (as_booster = TRUE) Calls: ... -> unbundle -> unbundle.bundle -> Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [146s] ERROR Running 'testthat.R' [146s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(bundle) > > test_check("bundle") Loading required package: ggplot2 Loading required package: lattice Attaching package: 'parsnip' The following object is masked from 'package:dbarts': bart Saving _problems/test_bundle_parsnip-47.R Loading required package: dplyr Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Attaching package: 'recipes' The following object is masked from 'package:stats': step Saving _problems/test_bundle_workflows-69.R Saving _problems/test_bundle_xgboost-33.R Saving _problems/test_utils-43.R [ FAIL 4 | WARN 0 | SKIP 11 | PASS 24 ] ══ Skipped tests (11) ══════════════════════════════════════════════════════════ • !interactive() is TRUE (4): 'test_bundle_h2o.R:137:3', 'test_bundle_h2o.R:284:3', 'test_bundle_h2o.R:428:3', 'test_bundle_h2o.R:564:3' • On CRAN (7): 'test_bundle_bart.R:100:1', 'test_bundle_bart.R:106:1', 'test_bundle_embed.R:2:3', 'test_bundle_h2o.R:2:3', 'test_bundle_keras.R:2:3', 'test_bundle_torch.R:6:3', 'test_bundle_workflows.R:126:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_bundle_parsnip.R:34:3'): bundling + unbundling parsnip model_fits (xgboost) ── Error: ! in callr subprocess. Caused by error in `xgboost::xgb.load.raw(object, as_booster = TRUE)`: ! unused argument (as_booster = TRUE) Backtrace: ▆ 1. └─callr::r(...) at test_bundle_parsnip.R:34:3 2. └─callr:::get_result(output = out, options) 3. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]])) ── Error ('test_bundle_workflows.R:53:3'): bundling + unbundling tidymodels workflows (xgboost + step_log) ── Error: ! in callr subprocess. Caused by error in `xgboost::xgb.load.raw(object, as_booster = TRUE)`: ! unused argument (as_booster = TRUE) Backtrace: ▆ 1. └─callr::r(...) at test_bundle_workflows.R:53:3 2. └─callr:::get_result(output = out, options) 3. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]])) ── Error ('test_bundle_xgboost.R:23:3'): bundling + unbundling xgboost fits ──── Error: ! in callr subprocess. Caused by error in `process.y.margin.and.objective(y, base_margin, objective, params)`: ! Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic Backtrace: ▆ 1. └─callr::r(...) at test_bundle_xgboost.R:23:3 2. └─callr:::get_result(output = out, options) 3. └─throw(callr_remote_error(remerr, output), parent = fix_msg(remerr[[3]])) ── Error ('test_utils.R:43:3'): swap_element works ───────────────────────────── Error in `xgboost::xgb.load.raw(object, as_booster = TRUE)`: unused argument (as_booster = TRUE) Backtrace: ▆ 1. └─bundle::swap_element(res, "fit") at test_utils.R:43:3 2. ├─bundle::unbundle(component) 3. └─bundle:::unbundle.bundle(component) 4. └─x$situate(get_object(x)) [ FAIL 4 | WARN 0 | SKIP 11 | PASS 24 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [28s] OK * checking PDF version of manual ... [25s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 2 ERRORs