Last updated on 2025-12-18 09:50:11 CET.
| Package | FAIL | NOTE | OK |
|---|---|---|---|
| counterfactuals | 1 | 12 | |
| mlr3summary | 4 | 9 |
Current CRAN status: FAIL: 1, OK: 12
Version: 0.1.6
Check: examples
Result: ERROR
Running examples in ‘counterfactuals-Ex.R’ failed
The error most likely occurred in:
> ### Name: RandomSearchRegr
> ### Title: Random Search for Regression Tasks
> ### Aliases: RandomSearchRegr
>
> ### ** Examples
>
> if (require("randomForest")) {
+ # Train a model
+ rf = randomForest(mpg ~ ., data = mtcars)
+ # Create a predictor object
+ predictor = iml::Predictor$new(rf)
+ # Find counterfactuals for x_interest
+ rs_regr = RandomSearchRegr$new(predictor, n_generations = 30L)
+ cfactuals = rs_regr$find_counterfactuals(x_interest = mtcars[1L, ], desired_outcome = c(22, 26))
+ # Print the counterfactuals
+ cfactuals$data
+ # Plot evolution of hypervolume and mean and minimum objective values
+ rs_regr$plot_statistics()
+ }
Loading required package: randomForest
randomForest 4.7-1.2
Type rfNews() to see new features/changes/bug fixes.
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.6
Check: HTML version of manual
Result: FAIL
Flavor: r-devel-linux-x86_64-fedora-gcc
Current CRAN status: NOTE: 4, OK: 9
Version: 0.1.0
Check: for unstated dependencies in ‘demo’
Result: NOTE
'library' or 'require' calls not declared from:
‘future’ ‘mlr3tuning’
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64