Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(localModel)
  > library(DALEX)
  Welcome to DALEX (version: 2.4.3).
  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.1
  Type rfNews() to see new features/changes/bug fixes.
  > 
  > test_check("localModel")
  Preparation of a new explainer is initiated
    -> model label       :  randomForest  ( [33m default [39m )
    -> data              :  500  rows  6  cols 
    -> target variable   :  not specified! ( [31m WARNING [39m )
    -> predict function  :  yhat.randomForest  will be used ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package randomForest , ver. 4.7.1.1 , task multiclass ( [33m default [39m ) 
    -> model_info        :  Model info detected multiclass task but 'y' is a NULL .  ( [31m WARNING [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  ( [33m default [39m ) 
    -> residual function :  difference between 1 and probability of true class ( [33m default [39m )
   [32m A new explainer has been created! [39m 
  Preparation of a new explainer is initiated
    -> model label       :  randomForest  ( [33m default [39m )
    -> data              :  500  rows  6  cols 
    -> target variable   :  not specified! ( [31m WARNING [39m )
    -> predict function  :  yhat.randomForest  will be used ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package randomForest , ver. 4.7.1.1 , task regression ( [33m default [39m ) 
    -> model_info        :  Model info detected regression task but 'y' is a NULL .  ( [31m WARNING [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 =  1969.982 , mean =  3489.993 , max =  5927.502  
    -> residual function :  difference between y and yhat ( [33m default [39m )
   [32m A new explainer has been created! [39m 
  Error in `source_file()`:
  ! In path: "/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/localModel.Rcheck/tests/testthat/setup-xyz.R"
  Caused by error in `intI()`:
  ! 'NA' indices are not (yet?) supported for sparse Matrices
  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(path, env = env, chdir = chdir, wrap = wrap)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       └─localModel::individual_surrogate_model(...) at tests/testthat/setup-xyz.R:20:0
   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. │                                         ├─nbeta[, lamlist$left, drop = FALSE]
   28. │                                         └─nbeta[, lamlist$left, drop = FALSE]
   29. │                                           └─Matrix:::subCsp_cols(x, j, drop = drop)
   30. │                                             └─Matrix:::intI(j, n = x@Dim[2], dn[[2]], give.dn = FALSE)
   31. │                                               └─base::stop("'NA' indices are not (yet?) supported for sparse Matrices")
   32. └─base::.handleSimpleError(...)
   33.   └─testthat (local) h(simpleError(msg, call))
   34.     └─rlang::abort(...)
  Execution halted