Last updated on 2025-12-07 07:50:33 CET.
| Package | ERROR | OK |
|---|---|---|
| bundle | 5 | 8 |
| butcher | 8 | 5 |
| cereal | 13 | |
| pins | 1 | 12 |
| vetiver | 5 | 8 |
Current CRAN status: ERROR: 5, OK: 8
Version: 0.1.2
Check: package dependencies
Result: WARN
Cannot process vignettes
Packages suggested but not available for checking:
'covr', 'keras', 'knitr', 'rmarkdown', 'tensorflow', 'vetiver'
VignetteBuilder package required for checking but not installed: ‘knitr’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.2
Check: examples
Result: ERROR
Running examples in ‘bundle-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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: <Anonymous> ... <Anonymous> -> unbundle -> unbundle.bundle -> <Anonymous>
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [83s/88s]
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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 ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.2
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: 0.1.2
Check: examples
Result: 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: <Anonymous> ... <Anonymous> -> unbundle -> unbundle.bundle -> <Anonymous>
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-windows-x86_64
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [3m/10m]
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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 ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [3m/12m]
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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 ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.2
Check: examples
Result: ERROR
Running examples in ‘bundle-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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: <Anonymous> ... <Anonymous> -> unbundle -> unbundle.bundle -> <Anonymous>
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
bundle_caret 3.759 0.155 5.188
Flavor: r-release-linux-x86_64
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [118s/127s]
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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 ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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
Flavor: r-release-linux-x86_64
Version: 0.1.2
Check: tests
Result: 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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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) ──
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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 ────
<callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
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
Flavor: r-oldrel-windows-x86_64
Current CRAN status: ERROR: 8, OK: 5
Version: 0.3.6
Check: package dependencies
Result: WARN
Cannot process vignettes
Packages suggested but not available for checking:
'covr', 'knitr', 'rmarkdown', 'sparklyr', 'usethis'
VignetteBuilder package required for checking but not installed: ‘knitr’
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.3.6
Check: examples
Result: ERROR
Running examples in ‘butcher-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: axe-flexsurvreg
> ### Title: Axing an flexsurvreg.
> ### Aliases: axe-flexsurvreg axe_call.flexsurvreg axe_env.flexsurvreg
>
> ### ** Examples
>
> ## Don't show:
> if (rlang::is_installed("flexsurv")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Load libraries
+ library(parsnip)
+ library(flexsurv)
+
+ # Create model and fit
+ flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>%
+ fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
+
+ out <- butcher(flexsurvreg_fit, verbose = TRUE)
+
+ # Another flexsurvreg model object
+ wrapped_flexsurvreg <- function() {
+ some_junk_in_environment <- runif(1e6)
+ fit <- flexsurvreg(Surv(futime, fustat) ~ 1,
+ data = ovarian, dist = "weibull")
+ return(fit)
+ }
+
+ out <- butcher(wrapped_flexsurvreg(), verbose = TRUE)
+ ## Don't show:
+ }) # examplesIf
> library(parsnip)
> library(flexsurv)
Loading required package: survival
> flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>% fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
Error:
! `surv_reg()` was deprecated in parsnip 1.4.0 and is now defunct.
ℹ Please use `survival_reg()` instead.
Backtrace:
▆
1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
2. │ └─base::source(...)
3. │ ├─base::withVisible(eval(ei, envir))
4. │ └─base::eval(ei, envir)
5. │ └─base::eval(ei, envir)
6. ├─... %>% ...
7. ├─generics::fit(., Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
8. ├─parsnip::set_engine(., "flexsurv")
9. └─parsnip::surv_reg(mode = "regression", dist = "gengamma")
10. └─lifecycle::deprecate_stop("1.4.0", "surv_reg()", "survival_reg()")
11. └─lifecycle:::deprecate_stop0(msg)
12. └─rlang::cnd_signal(...)
Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64
Version: 0.3.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [15s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(butcher)
>
> test_check("butcher")
1 package (dimRed) is needed for this step but is not installed.
To install run: `install.packages("dimRed")`
Saving _problems/test-xrf-12.R
Saving _problems/test-xrf-25.R
Saving _problems/test-xrf-40.R
Saving _problems/test-xrf-58.R
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
══ Skipped tests (35) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
• {mixOmics} is not installed (1): 'test-recipe.R:419:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
Differences:
`actual` is NULL
`expected` is a call
── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. ├─butcher::axe_env(res) at test-xrf.R:25:3
2. └─butcher:::axe_env.xrf(res)
3. ├─butcher::axe_env(res$xgb, ...)
4. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:40:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:58:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.3.6
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: 0.3.6
Check: examples
Result: ERROR
Running examples in ‘butcher-Ex.R’ failed
The error most likely occurred in:
> ### Name: axe-flexsurvreg
> ### Title: Axing an flexsurvreg.
> ### Aliases: axe-flexsurvreg axe_call.flexsurvreg axe_env.flexsurvreg
>
> ### ** Examples
>
> ## Don't show:
> if (rlang::is_installed("flexsurv")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Load libraries
+ library(parsnip)
+ library(flexsurv)
+
+ # Create model and fit
+ flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>%
+ fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
+
+ out <- butcher(flexsurvreg_fit, verbose = TRUE)
+
+ # Another flexsurvreg model object
+ wrapped_flexsurvreg <- function() {
+ some_junk_in_environment <- runif(1e6)
+ fit <- flexsurvreg(Surv(futime, fustat) ~ 1,
+ data = ovarian, dist = "weibull")
+ return(fit)
+ }
+
+ out <- butcher(wrapped_flexsurvreg(), verbose = TRUE)
+ ## Don't show:
+ }) # examplesIf
> library(parsnip)
> library(flexsurv)
Loading required package: survival
> flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>% fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
Error:
! `surv_reg()` was deprecated in parsnip 1.4.0 and is now defunct.
ℹ Please use `survival_reg()` instead.
Backtrace:
▆
1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
2. │ └─base::source(...)
3. │ ├─base::withVisible(eval(ei, envir))
4. │ └─base::eval(ei, envir)
5. │ └─base::eval(ei, envir)
6. ├─... %>% ...
7. ├─generics::fit(., Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
8. ├─parsnip::set_engine(., "flexsurv")
9. └─parsnip::surv_reg(mode = "regression", dist = "gengamma")
10. └─lifecycle::deprecate_stop("1.4.0", "surv_reg()", "survival_reg()")
11. └─lifecycle:::deprecate_stop0(msg)
12. └─rlang::cnd_signal(...)
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-release-windows-x86_64, r-oldrel-windows-x86_64
Version: 0.3.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [36s/96s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(butcher)
>
> test_check("butcher")
1 package (dimRed) is needed for this step but is not installed.
To install run: `install.packages("dimRed")`
Saving _problems/test-xrf-12.R
Saving _problems/test-xrf-25.R
Saving _problems/test-xrf-40.R
Saving _problems/test-xrf-58.R
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
══ Skipped tests (35) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
• {mixOmics} is not installed (1): 'test-recipe.R:419:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
Differences:
`actual` is NULL
`expected` is a call
── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. ├─butcher::axe_env(res) at test-xrf.R:25:3
2. └─butcher:::axe_env.xrf(res)
3. ├─butcher::axe_env(res$xgb, ...)
4. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:40:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:58:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.3.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [34s/45s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(butcher)
>
> test_check("butcher")
Saving _problems/test-xrf-12.R
Saving _problems/test-xrf-25.R
Saving _problems/test-xrf-40.R
Saving _problems/test-xrf-58.R
[ FAIL 4 | WARN 0 | SKIP 34 | PASS 197 ]
══ Skipped tests (34) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
Differences:
`actual` is NULL
`expected` is a call
── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. ├─butcher::axe_env(res) at test-xrf.R:25:3
2. └─butcher:::axe_env.xrf(res)
3. ├─butcher::axe_env(res$xgb, ...)
4. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:40:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:58:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
[ FAIL 4 | WARN 0 | SKIP 34 | PASS 197 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.3.6
Check: examples
Result: ERROR
Running examples in ‘butcher-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: axe-flexsurvreg
> ### Title: Axing an flexsurvreg.
> ### Aliases: axe-flexsurvreg axe_call.flexsurvreg axe_env.flexsurvreg
>
> ### ** Examples
>
> ## Don't show:
> if (rlang::is_installed("flexsurv")) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Load libraries
+ library(parsnip)
+ library(flexsurv)
+
+ # Create model and fit
+ flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>%
+ fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
+
+ out <- butcher(flexsurvreg_fit, verbose = TRUE)
+
+ # Another flexsurvreg model object
+ wrapped_flexsurvreg <- function() {
+ some_junk_in_environment <- runif(1e6)
+ fit <- flexsurvreg(Surv(futime, fustat) ~ 1,
+ data = ovarian, dist = "weibull")
+ return(fit)
+ }
+
+ out <- butcher(wrapped_flexsurvreg(), verbose = TRUE)
+ ## Don't show:
+ }) # examplesIf
> library(parsnip)
> library(flexsurv)
Loading required package: survival
> flexsurvreg_fit <- surv_reg(mode = "regression", dist = "gengamma") %>%
+ set_engine("flexsurv") %>% fit(Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
Error:
! `surv_reg()` was deprecated in parsnip 1.4.0 and is now defunct.
ℹ Please use `survival_reg()` instead.
Backtrace:
▆
1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
2. │ └─base::source(...)
3. │ ├─base::withVisible(eval(ei, envir))
4. │ └─base::eval(ei, envir)
5. │ └─base::eval(ei, envir)
6. ├─... %>% ...
7. ├─generics::fit(., Surv(Tstart, Tstop, status) ~ trans, data = bosms3)
8. ├─parsnip::set_engine(., "flexsurv")
9. └─parsnip::surv_reg(mode = "regression", dist = "gengamma")
10. └─lifecycle::deprecate_stop("1.4.0", "surv_reg()", "survival_reg()")
11. └─lifecycle:::deprecate_stop0(msg)
12. └─rlang::cnd_signal(...)
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
axe-C5.0 4.408 0.271 6.37
Flavor: r-release-linux-x86_64
Version: 0.3.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [21s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(butcher)
>
> test_check("butcher")
1 package (dimRed) is needed for this step but is not installed.
To install run: `install.packages("dimRed")`
Saving _problems/test-xrf-12.R
Saving _problems/test-xrf-25.R
Saving _problems/test-xrf-40.R
Saving _problems/test-xrf-58.R
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
══ Skipped tests (35) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
• {mixOmics} is not installed (1): 'test-recipe.R:419:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
Differences:
`actual` is NULL
`expected` is a call
── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. ├─butcher::axe_env(res) at test-xrf.R:25:3
2. └─butcher:::axe_env.xrf(res)
3. ├─butcher::axe_env(res$xgb, ...)
4. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:40:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:58:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.3.6
Check: tests
Result: ERROR
Running 'testthat.R' [29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(butcher)
>
> test_check("butcher")
1 package (dimRed) is needed for this step but is not installed.
To install run: `install.packages("dimRed")`
Saving _problems/test-xrf-12.R
Saving _problems/test-xrf-25.R
Saving _problems/test-xrf-40.R
Saving _problems/test-xrf-58.R
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
══ Skipped tests (35) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:2:3', 'test-earth.R:2:3', 'test-earth.R:31:3',
'test-elnet.R:2:3', 'test-flexsurvreg.R:2:3', 'test-flexsurvreg.R:15:3',
'test-flexsurvreg.R:43:3', 'test-gausspr.R:2:3', 'test-glmnet.R:2:3',
'test-kknn.R:2:3', 'test-klaR.R:2:3', 'test-klaR.R:17:3', 'test-ksvm.R:2:3',
'test-mda.R:2:3', 'test-mda.R:23:3', 'test-mda.R:95:3',
'test-mixOmics.R:2:3', 'test-mixOmics.R:21:3', 'test-mixOmics.R:38:3',
'test-multnet.R:2:3', 'test-nnet.R:2:3', 'test-randomForest.R:2:3',
'test-rpart.R:2:3', 'test-rpart.R:18:3', 'test-sclass.R:2:3',
'test-survreg.R:2:3', 'test-survreg.penal.R:2:3', 'test-train.R:2:3',
'test-train.R:42:3', 'test-train.recipe.R:9:3', 'test-ui.R:1:1',
'test-weigh.R:1:1', 'test-xgb.R:6:3', 'test-xgb.R:34:3'
• {mixOmics} is not installed (1): 'test-recipe.R:419:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-xrf.R:12:3'): xrf + axe_call() works ─────────────────────────
Expected `x$xgb$call` to equal `rlang::expr(dummy_call())`.
Differences:
`actual` is NULL
`expected` is a call
── Error ('test-xrf.R:25:3'): xrf + axe_env() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. ├─butcher::axe_env(res) at test-xrf.R:25:3
2. └─butcher:::axe_env.xrf(res)
3. ├─butcher::axe_env(res$xgb, ...)
4. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:40:3'): xrf + butcher() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:40:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
── Error ('test-xrf.R:58:3'): xrf + predict() works ────────────────────────────
Error in `x$callbacks <- purrr::map(x$callbacks, function(x) as.function(c(formals(x), body(x)), env = rlang::base_env()))`: ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost]
Backtrace:
▆
1. └─butcher::butcher(res) at test-xrf.R:58:3
2. ├─butcher::axe_env(x, verbose = FALSE, ...)
3. └─butcher:::axe_env.xrf(x, verbose = FALSE, ...)
4. ├─butcher::axe_env(res$xgb, ...)
5. └─butcher:::axe_env.xgb.Booster(res$xgb, ...)
[ FAIL 4 | WARN 0 | SKIP 35 | PASS 196 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 1.4.1
Check: package dependencies
Result: ERROR
Package required but not available: ‘yaml’
Packages suggested but not available for checking:
'covr', 'googleCloudStorageR', 'knitr', 'rmarkdown', 'rsconnect'
VignetteBuilder package required for checking but not installed: ‘knitr’
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Flavor: r-devel-linux-x86_64-debian-gcc
Current CRAN status: ERROR: 5, OK: 8
Version: 0.2.6
Check: package dependencies
Result: ERROR
Package required but not available: ‘pins’
Packages suggested but not available for checking:
'covr', 'flexdashboard', 'keras', 'knitr', 'plotly', 'rmarkdown',
'rsconnect', 'tensorflow'
VignetteBuilder package required for checking but not installed: ‘knitr’
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [53s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(vetiver)
>
> test_check("vetiver")
Loading required package: ggplot2
Loading required package: lattice
Create a Model Card for your published model
* Model Cards provide a framework for transparent, responsible reporting
* Use the vetiver `.Rmd` template as a place to start
This message is displayed once per session.
This is mgcv 1.9-4. For overview type '?mgcv'.
Attaching package: 'parsnip'
The following object is masked from 'package:e1071':
tune
Attaching package: 'probably'
The following objects are masked from 'package:base':
as.factor, as.ordered
Attaching package: 'tune'
The following object is masked from 'package:e1071':
tune
The following object is masked from 'package:vetiver':
load_pkgs
Attaching package: 'rsample'
The following object is masked from 'package:e1071':
permutations
The following object is masked from 'package:caret':
calibration
Attaching package: 'recipes'
The following object is masked from 'package:stats':
step
Your rsconnect bundle has been created at:
* /tmp/RtmpD92SpY/working_dir/Rtmpx3PTlu/file36b5f42b904c76/bundle36b5f421d1a3b1.tar.gz
Saving _problems/test-xgboost-9.R
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
══ Skipped tests (70) ══════════════════════════════════════════════════════════
• On CRAN (70): 'test-api.R:16:1', 'test-api.R:77:1', 'test-attach-pkgs.R:2:5',
'test-attach-pkgs.R:7:5', 'test-attach-pkgs.R:12:5', 'test-caret.R:22:1',
'test-caret.R:65:5', 'test-choose-version.R:4:5',
'test-choose-version.R:33:1', 'test-create-ptype.R:41:1',
'test-dashboard.R:13:5', 'test-gam.R:8:1', 'test-gam.R:60:5',
'test-glm.R:7:1', 'test-glm.R:59:5', 'test-keras.R:1:1',
'test-kproto.R:14:1', 'test-kproto.R:65:5', 'test-luz.R:1:1',
'test-mlr3.R:3:1', 'test-mlr3.R:52:5', 'test-monitor.R:66:5',
'test-monitor.R:72:5', 'test-monitor.R:79:5', 'test-monitor.R:124:5',
'test-pin-read-write.R:3:1', 'test-pin-read-write.R:17:1',
'test-pin-read-write.R:132:5', 'test-predict.R:1:1', 'test-probably.R:48:1',
'test-probably.R:98:5', 'test-probably.R:109:1', 'test-probably.R:159:5',
'test-probably.R:170:1', 'test-probably.R:220:5', 'test-probably.R:232:1',
'test-probably.R:282:5', 'test-ranger.R:9:1', 'test-ranger.R:13:1',
'test-ranger.R:62:5', 'test-recipe.R:14:1', 'test-recipe.R:58:5',
'test-rsconnect.R:18:5', 'test-sagemaker.R:4:5', 'test-sagemaker.R:25:5',
'test-sagemaker.R:49:1', 'test-sagemaker.R:77:1', 'test-sagemaker.R:98:1',
'test-sagemaker.R:112:1', 'test-sagemaker.R:161:1', 'test-stacks.R:1:1',
'test-tidymodels.R:21:1', 'test-tidymodels.R:71:5',
'test-type-convert.R:15:1', 'test-type-convert.R:31:1',
'test-type-convert.R:47:1', 'test-write-docker.R:5:5',
'test-write-docker.R:17:5', 'test-write-docker.R:35:5',
'test-write-docker.R:52:5', 'test-write-docker.R:65:5',
'test-write-docker.R:81:5', 'test-write-docker.R:88:5',
'test-write-plumber.R:4:5', 'test-write-plumber.R:17:5',
'test-write-plumber.R:38:5', 'test-write-plumber.R:57:5',
'test-write-plumber.R:71:5', 'test-write-plumber.R:84:5',
'test-write-plumber.R:98:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-xgboost.R:9:1'): (code run outside of `test_that()`) ───────────
Error in `matrix(NA_real_, ncol = model$nfeatures, dimnames = list("", model$feature_names))`: non-numeric matrix extent
Backtrace:
▆
1. └─vetiver::vetiver_model(cars_xgb, "cars2") at test-xgboost.R:9:1
2. └─vetiver::vetiver_create_ptype(model, save_prototype, ...)
3. ├─vetiver::vetiver_ptype(model, ...)
4. └─vetiver:::vetiver_ptype.xgb.Booster(model, ...)
5. └─base::matrix(...)
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.2.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [47s/48s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(vetiver)
>
> test_check("vetiver")
Loading required package: ggplot2
Loading required package: lattice
Create a Model Card for your published model
* Model Cards provide a framework for transparent, responsible reporting
* Use the vetiver `.Rmd` template as a place to start
This message is displayed once per session.
This is mgcv 1.9-4. For overview type '?mgcv'.
Attaching package: 'parsnip'
The following object is masked from 'package:e1071':
tune
Attaching package: 'probably'
The following objects are masked from 'package:base':
as.factor, as.ordered
Attaching package: 'tune'
The following object is masked from 'package:e1071':
tune
The following object is masked from 'package:vetiver':
load_pkgs
Attaching package: 'rsample'
The following object is masked from 'package:e1071':
permutations
The following object is masked from 'package:caret':
calibration
Attaching package: 'recipes'
The following object is masked from 'package:stats':
step
Your rsconnect bundle has been created at:
* /tmp/RtmpqacBmU/working_dir/RtmpuMJ5oG/file30d8e052e4e1ba/bundle30d8e03f7af32a.tar.gz
Saving _problems/test-xgboost-9.R
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
══ Skipped tests (70) ══════════════════════════════════════════════════════════
• On CRAN (70): 'test-api.R:16:1', 'test-api.R:77:1', 'test-attach-pkgs.R:2:5',
'test-attach-pkgs.R:7:5', 'test-attach-pkgs.R:12:5', 'test-caret.R:22:1',
'test-caret.R:65:5', 'test-choose-version.R:4:5',
'test-choose-version.R:33:1', 'test-create-ptype.R:41:1',
'test-dashboard.R:13:5', 'test-gam.R:8:1', 'test-gam.R:60:5',
'test-glm.R:7:1', 'test-glm.R:59:5', 'test-keras.R:1:1',
'test-kproto.R:14:1', 'test-kproto.R:65:5', 'test-luz.R:1:1',
'test-mlr3.R:3:1', 'test-mlr3.R:52:5', 'test-monitor.R:66:5',
'test-monitor.R:72:5', 'test-monitor.R:79:5', 'test-monitor.R:124:5',
'test-pin-read-write.R:3:1', 'test-pin-read-write.R:17:1',
'test-pin-read-write.R:132:5', 'test-predict.R:1:1', 'test-probably.R:48:1',
'test-probably.R:98:5', 'test-probably.R:109:1', 'test-probably.R:159:5',
'test-probably.R:170:1', 'test-probably.R:220:5', 'test-probably.R:232:1',
'test-probably.R:282:5', 'test-ranger.R:9:1', 'test-ranger.R:13:1',
'test-ranger.R:62:5', 'test-recipe.R:14:1', 'test-recipe.R:58:5',
'test-rsconnect.R:18:5', 'test-sagemaker.R:4:5', 'test-sagemaker.R:25:5',
'test-sagemaker.R:49:1', 'test-sagemaker.R:77:1', 'test-sagemaker.R:98:1',
'test-sagemaker.R:112:1', 'test-sagemaker.R:161:1', 'test-stacks.R:1:1',
'test-tidymodels.R:21:1', 'test-tidymodels.R:71:5',
'test-type-convert.R:15:1', 'test-type-convert.R:31:1',
'test-type-convert.R:47:1', 'test-write-docker.R:5:5',
'test-write-docker.R:17:5', 'test-write-docker.R:35:5',
'test-write-docker.R:52:5', 'test-write-docker.R:65:5',
'test-write-docker.R:81:5', 'test-write-docker.R:88:5',
'test-write-plumber.R:4:5', 'test-write-plumber.R:17:5',
'test-write-plumber.R:38:5', 'test-write-plumber.R:57:5',
'test-write-plumber.R:71:5', 'test-write-plumber.R:84:5',
'test-write-plumber.R:98:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-xgboost.R:9:1'): (code run outside of `test_that()`) ───────────
Error in `matrix(NA_real_, ncol = model$nfeatures, dimnames = list("", model$feature_names))`: non-numeric matrix extent
Backtrace:
▆
1. └─vetiver::vetiver_model(cars_xgb, "cars2") at test-xgboost.R:9:1
2. └─vetiver::vetiver_create_ptype(model, save_prototype, ...)
3. ├─vetiver::vetiver_ptype(model, ...)
4. └─vetiver:::vetiver_ptype.xgb.Booster(model, ...)
5. └─base::matrix(...)
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.2.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [33s/41s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(vetiver)
>
> test_check("vetiver")
Loading required package: ggplot2
Loading required package: lattice
Create a Model Card for your published model
* Model Cards provide a framework for transparent, responsible reporting
* Use the vetiver `.Rmd` template as a place to start
This message is displayed once per session.
This is mgcv 1.9-4. For overview type '?mgcv'.
Attaching package: 'parsnip'
The following object is masked from 'package:e1071':
tune
Attaching package: 'probably'
The following objects are masked from 'package:base':
as.factor, as.ordered
Attaching package: 'tune'
The following object is masked from 'package:e1071':
tune
The following object is masked from 'package:vetiver':
load_pkgs
Attaching package: 'rsample'
The following object is masked from 'package:e1071':
permutations
The following object is masked from 'package:caret':
calibration
Attaching package: 'recipes'
The following object is masked from 'package:stats':
step
Your rsconnect bundle has been created at:
* /home/hornik/tmp/scratch/RtmpSyPHA9/file298a6d1b7d0883/bundle298a6d5327e391.tar.gz
Saving _problems/test-xgboost-9.R
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
══ Skipped tests (70) ══════════════════════════════════════════════════════════
• On CRAN (70): 'test-api.R:16:1', 'test-api.R:77:1', 'test-attach-pkgs.R:2:5',
'test-attach-pkgs.R:7:5', 'test-attach-pkgs.R:12:5', 'test-caret.R:22:1',
'test-caret.R:65:5', 'test-choose-version.R:4:5',
'test-choose-version.R:33:1', 'test-create-ptype.R:41:1',
'test-dashboard.R:13:5', 'test-gam.R:8:1', 'test-gam.R:60:5',
'test-glm.R:7:1', 'test-glm.R:59:5', 'test-keras.R:1:1',
'test-kproto.R:14:1', 'test-kproto.R:65:5', 'test-luz.R:1:1',
'test-mlr3.R:3:1', 'test-mlr3.R:52:5', 'test-monitor.R:66:5',
'test-monitor.R:72:5', 'test-monitor.R:79:5', 'test-monitor.R:124:5',
'test-pin-read-write.R:3:1', 'test-pin-read-write.R:17:1',
'test-pin-read-write.R:132:5', 'test-predict.R:1:1', 'test-probably.R:48:1',
'test-probably.R:98:5', 'test-probably.R:109:1', 'test-probably.R:159:5',
'test-probably.R:170:1', 'test-probably.R:220:5', 'test-probably.R:232:1',
'test-probably.R:282:5', 'test-ranger.R:9:1', 'test-ranger.R:13:1',
'test-ranger.R:62:5', 'test-recipe.R:14:1', 'test-recipe.R:58:5',
'test-rsconnect.R:18:5', 'test-sagemaker.R:4:5', 'test-sagemaker.R:25:5',
'test-sagemaker.R:49:1', 'test-sagemaker.R:77:1', 'test-sagemaker.R:98:1',
'test-sagemaker.R:112:1', 'test-sagemaker.R:161:1', 'test-stacks.R:1:1',
'test-tidymodels.R:21:1', 'test-tidymodels.R:71:5',
'test-type-convert.R:15:1', 'test-type-convert.R:31:1',
'test-type-convert.R:47:1', 'test-write-docker.R:5:5',
'test-write-docker.R:17:5', 'test-write-docker.R:35:5',
'test-write-docker.R:52:5', 'test-write-docker.R:65:5',
'test-write-docker.R:81:5', 'test-write-docker.R:88:5',
'test-write-plumber.R:4:5', 'test-write-plumber.R:17:5',
'test-write-plumber.R:38:5', 'test-write-plumber.R:57:5',
'test-write-plumber.R:71:5', 'test-write-plumber.R:84:5',
'test-write-plumber.R:98:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-xgboost.R:9:1'): (code run outside of `test_that()`) ───────────
Error in `matrix(NA_real_, ncol = model$nfeatures, dimnames = list("", model$feature_names))`: non-numeric matrix extent
Backtrace:
▆
1. └─vetiver::vetiver_model(cars_xgb, "cars2") at test-xgboost.R:9:1
2. └─vetiver::vetiver_create_ptype(model, save_prototype, ...)
3. ├─vetiver::vetiver_ptype(model, ...)
4. └─vetiver:::vetiver_ptype.xgb.Booster(model, ...)
5. └─base::matrix(...)
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.2.6
Check: tests
Result: ERROR
Running 'testthat.R' [40s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(vetiver)
>
> test_check("vetiver")
Loading required package: ggplot2
Loading required package: lattice
Create a Model Card for your published model
* Model Cards provide a framework for transparent, responsible reporting
* Use the vetiver `.Rmd` template as a place to start
This message is displayed once per session.
This is mgcv 1.9-4. For overview type '?mgcv'.
Attaching package: 'parsnip'
The following object is masked from 'package:e1071':
tune
Attaching package: 'probably'
The following objects are masked from 'package:base':
as.factor, as.ordered
Attaching package: 'tune'
The following object is masked from 'package:e1071':
tune
The following object is masked from 'package:vetiver':
load_pkgs
Attaching package: 'rsample'
The following object is masked from 'package:e1071':
permutations
The following object is masked from 'package:caret':
calibration
Attaching package: 'recipes'
The following object is masked from 'package:stats':
step
Your rsconnect bundle has been created at:
* D:/temp/2025_12_05_01_50_00_7414/Rtmp2fivwm/filed48419255dcb/bundled48418284fe8.tar.gz
Saving _problems/test-xgboost-9.R
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
══ Skipped tests (70) ══════════════════════════════════════════════════════════
• On CRAN (70): 'test-api.R:16:1', 'test-api.R:77:1', 'test-attach-pkgs.R:2:5',
'test-attach-pkgs.R:7:5', 'test-attach-pkgs.R:12:5', 'test-caret.R:22:1',
'test-caret.R:65:5', 'test-choose-version.R:4:5',
'test-choose-version.R:33:1', 'test-create-ptype.R:41:1',
'test-dashboard.R:13:5', 'test-gam.R:8:1', 'test-gam.R:60:5',
'test-glm.R:7:1', 'test-glm.R:59:5', 'test-keras.R:1:1',
'test-kproto.R:14:1', 'test-kproto.R:65:5', 'test-luz.R:1:1',
'test-mlr3.R:3:1', 'test-mlr3.R:52:5', 'test-monitor.R:66:5',
'test-monitor.R:72:5', 'test-monitor.R:79:5', 'test-monitor.R:124:5',
'test-pin-read-write.R:3:1', 'test-pin-read-write.R:17:1',
'test-pin-read-write.R:132:5', 'test-predict.R:1:1', 'test-probably.R:48:1',
'test-probably.R:98:5', 'test-probably.R:109:1', 'test-probably.R:159:5',
'test-probably.R:170:1', 'test-probably.R:220:5', 'test-probably.R:232:1',
'test-probably.R:282:5', 'test-ranger.R:9:1', 'test-ranger.R:13:1',
'test-ranger.R:62:5', 'test-recipe.R:14:1', 'test-recipe.R:58:5',
'test-rsconnect.R:18:5', 'test-sagemaker.R:4:5', 'test-sagemaker.R:25:5',
'test-sagemaker.R:49:1', 'test-sagemaker.R:77:1', 'test-sagemaker.R:98:1',
'test-sagemaker.R:112:1', 'test-sagemaker.R:161:1', 'test-stacks.R:1:1',
'test-tidymodels.R:21:1', 'test-tidymodels.R:71:5',
'test-type-convert.R:15:1', 'test-type-convert.R:31:1',
'test-type-convert.R:47:1', 'test-write-docker.R:5:5',
'test-write-docker.R:17:5', 'test-write-docker.R:35:5',
'test-write-docker.R:52:5', 'test-write-docker.R:65:5',
'test-write-docker.R:81:5', 'test-write-docker.R:88:5',
'test-write-plumber.R:4:5', 'test-write-plumber.R:17:5',
'test-write-plumber.R:38:5', 'test-write-plumber.R:57:5',
'test-write-plumber.R:71:5', 'test-write-plumber.R:84:5',
'test-write-plumber.R:98:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-xgboost.R:9:1'): (code run outside of `test_that()`) ───────────
Error in `matrix(NA_real_, ncol = model$nfeatures, dimnames = list("", model$feature_names))`: non-numeric matrix extent
Backtrace:
▆
1. └─vetiver::vetiver_model(cars_xgb, "cars2") at test-xgboost.R:9:1
2. └─vetiver::vetiver_create_ptype(model, save_prototype, ...)
3. ├─vetiver::vetiver_ptype(model, ...)
4. └─vetiver:::vetiver_ptype.xgb.Booster(model, ...)
5. └─base::matrix(...)
[ FAIL 1 | WARN 2 | SKIP 70 | PASS 221 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64