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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ceteris_paribus_cutoff
> ### Title: Ceteris paribus cutoff
> ### Aliases: ceteris_paribus_cutoff
> 
> ### ** Examples
> 
> data("compas")
> 
> # positive outcome - not being recidivist
> two_yr_recidivism <- factor(compas$Two_yr_Recidivism, levels = c(1, 0))
> y_numeric <- as.numeric(two_yr_recidivism) - 1
> compas$Two_yr_Recidivism <- two_yr_recidivism
> 
> 
> lm_model <- glm(Two_yr_Recidivism ~ .,
+   data = compas,
+   family = binomial(link = "logit")
+ )
> 
> explainer_lm <- DALEX::explain(lm_model, data = compas[, -1], y = y_numeric)
Preparation of a new explainer is initiated
  -> model label       :  lm  ( [33m default [39m )
  -> data              :  6172  rows  6  cols 
  -> target variable   :  6172  values 
  -> predict function  :  yhat.glm  will be used ( [33m default [39m )
  -> predicted values  :  No value for predict function target column. ( [33m default [39m )
  -> model_info        :  package stats , ver. 4.4.2 , task classification ( [33m default [39m ) 
  -> predicted values  :  numerical, min =  0.004522979 , mean =  0.5448801 , max =  0.8855426  
  -> residual function :  difference between y and yhat ( [33m default [39m )
  -> residuals         :  numerical, min =  -0.8822826 , mean =  -5.053611e-13 , max =  0.9767658  
 [32m A new explainer has been created! [39m 
> 
> fobject <- fairness_check(explainer_lm,
+   protected = compas$Ethnicity,
+   privileged = "Caucasian"
+ )
Creating fairness classification object
-> Privileged subgroup		: character ([32m Ok [39m )
-> Protected variable		: factor ([32m Ok [39m ) 
-> Cutoff values for explainers	: 0.5 ( for all subgroups ) 
-> Fairness objects		: 0 objects 
-> Checking explainers		: 1 in total ( [32m compatible [39m )
-> Metric calculation		: 11/13 metrics calculated for all models ( [33m2 NA created[39m )
[32m Fairness object created succesfully [39m 
> 
> cpc <- ceteris_paribus_cutoff(fobject, "African_American")
> plot(cpc)
Error: Package "ggrepel" needed for this function to work. Please install it.
Execution halted