CRAN Package Check Results for Package localModel

Last updated on 2026-07-25 01:50:21 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5 5.45 90.08 95.53 ERROR
r-devel-linux-x86_64-debian-gcc 0.5 4.44 69.88 74.32 OK
r-devel-linux-x86_64-fedora-clang 0.5 10.00 155.24 165.24 OK
r-devel-linux-x86_64-fedora-gcc 0.5 73.57 OK
r-devel-windows-x86_64 0.5 9.00 98.00 107.00 OK
r-patched-linux-x86_64 0.5 5.59 88.04 93.63 OK
r-release-linux-x86_64 0.5 5.10 87.22 92.32 OK
r-release-macos-arm64 0.5 2.00 30.00 32.00 OK
r-release-macos-x86_64 0.5 5.00 134.00 139.00 OK
r-release-windows-x86_64 0.5 10.00 100.00 110.00 OK
r-oldrel-macos-arm64 0.5 OK
r-oldrel-macos-x86_64 0.5 3.00 82.00 85.00 OK
r-oldrel-windows-x86_64 0.5 11.00 142.00 153.00 OK

Check Details

Version: 0.5
Check: tests
Result: ERROR Running ‘testthat.R’ [5s/5s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(localModel) > library(DALEX) Welcome to DALEX (version: 2.5.4). Find examples and detailed introduction at: http://ema.drwhy.ai/ Additional features will be available after installation of: ggpubr. Use 'install_dependencies()' to get all suggested dependencies > library(randomForest) randomForest 4.7-1.2 Type rfNews() to see new features/changes/bug fixes. > > test_check("localModel") Preparation of a new explainer is initiated -> model label : randomForest ( <1b>[33m default <1b>[39m ) -> data : 500 rows 6 cols -> target variable : not specified! ( <1b>[31m WARNING <1b>[39m ) -> predict function : yhat.randomForest will be used ( <1b>[33m default <1b>[39m ) -> predicted values : No value for predict function target column. ( <1b>[33m default <1b>[39m ) -> model_info : package randomForest , ver. 4.7.1.2 , task multiclass ( <1b>[33m default <1b>[39m ) -> model_info : Model info detected multiclass task but 'y' is a NULL . ( <1b>[31m WARNING <1b>[39m ) -> model_info : By deafult multiclass tasks supports only factor 'y' parameter. -> model_info : Consider changing to a factor vector with true class names. -> model_info : Otherwise I will not be able to calculate residuals or loss function. -> predicted values : predict function returns multiple columns: 3 ( <1b>[33m default <1b>[39m ) -> residual function : difference between 1 and probability of true class ( <1b>[33m default <1b>[39m ) <1b>[32m A new explainer has been created! <1b>[39m Preparation of a new explainer is initiated -> model label : randomForest ( <1b>[33m default <1b>[39m ) -> data : 500 rows 6 cols -> target variable : not specified! ( <1b>[31m WARNING <1b>[39m ) -> predict function : yhat.randomForest will be used ( <1b>[33m default <1b>[39m ) -> predicted values : No value for predict function target column. ( <1b>[33m default <1b>[39m ) -> model_info : package randomForest , ver. 4.7.1.2 , task regression ( <1b>[33m default <1b>[39m ) -> model_info : Model info detected regression task but 'y' is a NULL . ( <1b>[31m WARNING <1b>[39m ) -> model_info : By deafult regressions tasks supports only numercical 'y' parameter. -> model_info : Consider changing to numerical vector. -> model_info : Otherwise I will not be able to calculate residuals or loss function. -> predicted values : numerical, min = 1930.573 , mean = 3499.509 , max = 5925.106 -> residual function : difference between y and yhat ( <1b>[33m default <1b>[39m ) <1b>[32m A new explainer has been created! <1b>[39m Error in `source_dir()`: ! Failed to evaluate './setup-xyz.R'. Caused by error in `approx()`: ! need at least two non-NA values to interpolate Backtrace: ▆ 1. ├─testthat::test_check("localModel") 2. │ └─testthat::test_dir(...) 3. │ └─testthat:::test_files(...) 4. │ └─testthat:::test_files_serial(...) 5. │ └─testthat:::test_files_setup_state(...) 6. │ └─testthat::source_test_setup(".", env) 7. │ └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE) 8. │ └─base::lapply(...) 9. │ └─testthat (local) FUN(X[[i]], ...) 10. │ └─testthat::source_file(...) 11. │ ├─base::withCallingHandlers(...) 12. │ └─base::eval(exprs, env) 13. │ └─base::eval(exprs, env) 14. │ └─localModel::individual_surrogate_model(...) at ./setup-xyz.R:20:1 15. │ └─localModel:::combine_explanations(...) 16. │ └─base::lapply(...) 17. │ └─localModel (local) FUN(X[[i]], ...) 18. │ └─localModel:::single_column_surrogate(...) 19. │ └─glmnet::cv.glmnet(...) 20. │ └─glmnet:::cv.glmnet.raw(...) 21. │ ├─glmnet::buildPredmat(...) 22. │ └─glmnet:::buildPredmat.default(...) 23. │ ├─stats::predict(...) 24. │ ├─glmnet:::predict.elnet(...) 25. │ ├─base::NextMethod("predict") 26. │ └─glmnet::predict.glmnet(...) 27. │ └─glmnet:::lambda.interp(lambda, s) 28. │ └─stats::approx(lambda, seq(lambda), sfrac) 29. │ └─base::stop("need at least two non-NA values to interpolate") 30. └─base::.handleSimpleError(...) 31. └─testthat (local) h(simpleError(msg, call)) 32. └─cli::cli_abort(...) 33. └─rlang::abort(...) Execution halted Flavor: r-devel-linux-x86_64-debian-clang