* using log directory 'd:/Rcompile/CRANpkg/local/4.5/butcher.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'butcher/DESCRIPTION' ... OK * this is package 'butcher' version '0.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 'butcher' 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 ... [0s] OK * checking whether the package can be loaded with stated dependencies ... [0s] OK * checking whether the package can be unloaded cleanly ... [0s] OK * checking whether the namespace can be loaded with stated dependencies ... [0s] OK * checking whether the namespace can be unloaded cleanly ... [0s] OK * checking loading without being on the library search path ... [0s] 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 ... [4s] 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 ... [8s] 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 * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20s] OK Running 'testthat.R' [19s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] OK * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [9s] OK * DONE Status: 1 ERROR