- 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 '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 hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'explore' can be installed ... OK
See the install log for details.
- 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [3s] 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 ... [15s] OK
- checking Rd files ... [2s] 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 ... [18s] 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 ... [14s] OK
Running 'testthat.R' [14s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [151s] ERROR
Error(s) in re-building vignettes:
--- re-building 'abtest.Rmd' using rmarkdown
--- finished re-building 'abtest.Rmd'
--- re-building 'clean-drop.Rmd' using rmarkdown
--- finished re-building 'clean-drop.Rmd'
--- re-building 'data.Rmd' using rmarkdown
--- finished re-building 'data.Rmd'
--- re-building 'describe.Rmd' using rmarkdown
--- 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
--- finished re-building 'explore-mtcars.Rmd'
--- re-building 'explore-penguins.Rmd' using rmarkdown
--- finished re-building 'explore-penguins.Rmd'
--- re-building 'explore-titanic.Rmd' using rmarkdown
--- finished re-building 'explore-titanic.Rmd'
--- re-building 'explore.Rmd' using rmarkdown
--- finished re-building 'explore.Rmd'
--- re-building 'predict.Rmd' using rmarkdown
--- finished re-building 'predict.Rmd'
--- re-building 'report-target.Rmd' using rmarkdown
--- finished re-building 'report-target.Rmd'
--- re-building 'report-targetpct.Rmd' using rmarkdown
--- finished re-building 'report-targetpct.Rmd'
--- re-building 'report.Rmd' using rmarkdown
--- finished re-building 'report.Rmd'
--- re-building 'tips-tricks.Rmd' using rmarkdown
--- 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 ... [19s] OK
- checking HTML version of manual ... [16s] OK
- DONE
Status: 2 ERRORs