Running examples in ‘butcher-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: axe-C5.0
> ### Title: Axing a C5.0.
> ### Aliases: axe-C5.0 axe_call.C5.0 axe_ctrl.C5.0 axe_fitted.C5.0
> 
> ### ** Examples
> 
> ## Don't show: 
> if (rlang::is_installed(c("parsnip", "rsample", "rpart"))) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Load libraries
+ library(parsnip)
+ library(rsample)
+ library(rpart)
+ 
+ # Load data
+ set.seed(1234)
+ split <- initial_split(kyphosis, prop = 9/10)
+ spine_train <- training(split)
+ 
+ # Create model and fit
+ c5_fit <- decision_tree(mode = "classification") %>%
+   set_engine("C5.0") %>%
+   fit(Kyphosis ~ ., data = spine_train)
+ 
+ out <- butcher(c5_fit, verbose = TRUE)
+ 
+ # Try another model from parsnip
+ c5_fit2 <- boost_tree(mode = "classification", trees = 100) %>%
+   set_engine("C5.0") %>%
+   fit(Kyphosis ~ ., data = spine_train)
+ out <- butcher(c5_fit2, verbose = TRUE)
+ 
+ # Create model object from original library
+ library(C50)
+ library(modeldata)
+ data(mlc_churn)
+ c5_fit3 <- C5.0(x = mlc_churn[, -20], y = mlc_churn$churn)
+ out <- butcher(c5_fit3, verbose = TRUE)
+ ## Don't show: 
+ }) # examplesIf
> library(parsnip)
> library(rsample)
> library(rpart)
> set.seed(1234)
> split <- initial_split(kyphosis, prop = 9/10)
> spine_train <- training(split)
> c5_fit <- decision_tree(mode = "classification") %>% set_engine("C5.0") %>% 
+     fit(Kyphosis ~ ., data = spine_train)
Error in `check_installs()`:
! This engine requires some package installs: 'C50'
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. ├─... %>% fit(Kyphosis ~ ., data = spine_train)
  7. ├─generics::fit(., Kyphosis ~ ., data = spine_train)
  8. └─parsnip::fit.model_spec(., Kyphosis ~ ., data = spine_train)
  9.   └─parsnip:::check_installs(object)
 10.     └─rlang::abort(...)
Execution halted