- using R Under development (unstable) (2025-12-02 r89085)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘explore/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘explore’ version ‘1.3.6’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘explore’ can be installed ... [20s/76s] OK
See the install log for details.
- 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 ... [3s/11s] OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/11s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/11s] OK
- checking loading without being on the library search path ... [3s/11s] 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 ... [34s/137s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [16s/73s] ERROR
Running examples in ‘explore-Ex.R’ failed
The error most likely occurred in:
> ### Name: explain_xgboost
> ### Title: Explain a binary target using xgboost
> ### Aliases: explain_xgboost
>
> ### ** Examples
>
> data <- use_data_iris()
> data$is_versicolor <- ifelse(data$Species == "versicolor", 1, 0)
> data$Species <- NULL
> explain_xgboost(data, target = is_versicolor, log = FALSE)
Warning in check.deprecation(deprecated_cv_params, match.call(), ...) :
Passed invalid function arguments: eval_metric, nthread. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in check.custom.obj(params, objective) :
Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Error in all_nrounds[k] <- cv$best_iteration :
replacement has length zero
Calls: explain_xgboost
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [18s/90s] OK
Running ‘testthat.R’ [18s/88s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4m/19m] ERROR
Error(s) in re-building vignettes:
--- re-building ‘abtest.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘abtest.Rmd’
--- re-building ‘clean-drop.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘clean-drop.Rmd’
--- re-building ‘data.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘data.Rmd’
--- re-building ‘describe.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘describe.Rmd’
--- re-building ‘explain.Rmd’ using rmarkdown
Quitting from explain.Rmd:65-69 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `all_nrounds[k] <- cv$best_iteration`:
! replacement has length zero
---
Backtrace:
▆
1. └─explore::explain_xgboost(data %>% drop_var_not_numeric(), target = buy)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'explain.Rmd' failed with diagnostics:
replacement has length zero
--- failed re-building ‘explain.Rmd’
--- re-building ‘explore-mtcars.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘explore-mtcars.Rmd’
--- re-building ‘explore-penguins.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘explore-penguins.Rmd’
--- re-building ‘explore-titanic.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘explore-titanic.Rmd’
--- re-building ‘explore.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘explore.Rmd’
--- re-building ‘predict.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘predict.Rmd’
--- re-building ‘report-target.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘report-target.Rmd’
--- re-building ‘report-targetpct.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘report-targetpct.Rmd’
--- re-building ‘report.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘report.Rmd’
--- re-building ‘tips-tricks.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘tips-tricks.Rmd’
SUMMARY: processing the following file failed:
‘explain.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [11s/43s] OK
- checking HTML version of manual ... [8s/30s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs