CRAN Package Check Results for Package important

Last updated on 2026-10-22 23:56:46 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 14.72 167.32 182.04 OK
r-devel-linux-x86_64-debian-gcc 0.2.1 10.01 117.84 127.85 OK
r-devel-linux-x86_64-fedora-clang 0.2.1 11.00 107.12 118.12 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.1 10.00 104.34 114.34 ERROR
r-devel-windows-x86_64 0.2.1 17.00 164.00 181.00 OK
r-patched-linux-x86_64 0.2.1 13.27 157.82 171.09 OK
r-release-linux-x86_64 0.2.1 15.08 156.63 171.71 OK
r-release-macos-arm64 0.2.1 3.00 40.00 43.00 OK
r-release-macos-x86_64 0.2.1 10.00 188.00 198.00 OK
r-release-windows-x86_64 0.2.1 16.00 161.00 177.00 OK
r-oldrel-macos-arm64 0.2.1 OK
r-oldrel-macos-x86_64 0.2.1 10.00 234.00 244.00 OK
r-oldrel-windows-x86_64 0.2.1 22.00 210.00 232.00 OK

Check Details

Version: 0.2.1
Check: tests
Result: ERROR Running ‘spelling.R’ Running ‘testthat.R’ [27s/32s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(important) Loading required package: recipes Loading required package: dplyr Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Attaching package: 'recipes' The following object is masked from 'package:stats': step > > test_check("important") Saving _problems/test-importance_perm-502.R Saving _problems/test-importance_perm-601.R Saving _problems/test-importance_perm-872.R Attaching package: 'future' The following object is masked from 'package:survival': cluster [ FAIL 3 | WARN 0 | SKIP 23 | PASS 211 ] ══ Skipped tests (23) ══════════════════════════════════════════════════════════ • On CRAN (23): 'test-extract_data.R:69:1', 'test-extract_data.R:224:1', 'test-parallel_utils.R:1:1', 'test-parallel_utils.R:12:1', 'test-parallel_utils.R:46:1', 'test-parallel_utils.R:86:2', 'test-parallel_utils.R:109:2', 'test-parallel_utils.R:135:2', 'test-recipes_utils.R:1:1', 'test-step_predictor_best.R:92:1', 'test-step_predictor_best.R:119:1', 'test-step_predictor_best.R:138:1', 'test-step_predictor_best.R:175:1', 'test-step_predictor_best.R:199:1', 'test-step_predictor_desirability.R:97:1', 'test-step_predictor_desirability.R:172:1', 'test-step_predictor_desirability.R:207:1', 'test-step_predictor_desirability.R:213:1', 'test-step_predictor_desirability.R:241:1', 'test-step_predictor_retain.R:118:1', 'test-step_predictor_retain.R:151:1', 'test-step_predictor_retain.R:195:1', 'test-step_predictor_retain.R:204:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-importance_perm.R:490:3'): compute metrics - original predictors, censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important:::metric_iter(...) at test-importance_perm.R:490:3 2. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 3. │ ├─generics::augment(wflow, new_data = new_data, eval_time = eval_time) 4. │ └─workflows:::augment.workflow(wflow, new_data = new_data, eval_time = eval_time) 5. │ ├─generics::augment(...) 6. │ └─parsnip:::augment.model_fit(...) 7. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 8. │ ├─dplyr::bind_cols(...) 9. │ │ └─rlang::list2(...) 10. │ ├─stats::predict(...) 11. │ └─parsnip::predict.model_fit(...) 12. │ ├─parsnip::predict_survival(...) 13. │ └─parsnip::predict_survival.model_fit(...) 14. │ ├─parsnip::.censoring_weights_graf(object, res) 15. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 16. │ └─parsnip:::add_graf_weights_vec(...) 17. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 18. │ └─parsnip:::predict.censoring_model_reverse_km(...) 19. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 20. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 21. │ ├─purrr:::with_indexed_errors(...) 22. │ │ └─base::withCallingHandlers(...) 23. │ ├─purrr:::call_with_cleanup(...) 24. │ └─parsnip (local) .f(.x[[i]], ...) 25. │ └─stats::predict(object$fit, times = .x, type = "surv") 26. └─base::.handleSimpleError(...) 27. └─purrr (local) h(simpleError(msg, call)) 28. └─cli::cli_abort(...) 29. └─rlang::abort(...) ── Error ('test-importance_perm.R:589:3'): compute metrics - derived predictors, censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important:::metric_iter(...) at test-importance_perm.R:589:3 2. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 3. │ ├─generics::augment(...) 4. │ └─parsnip:::augment.model_fit(...) 5. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 6. │ ├─dplyr::bind_cols(...) 7. │ │ └─rlang::list2(...) 8. │ ├─stats::predict(...) 9. │ └─parsnip::predict.model_fit(...) 10. │ ├─parsnip::predict_survival(...) 11. │ └─parsnip::predict_survival.model_fit(...) 12. │ ├─parsnip::.censoring_weights_graf(object, res) 13. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 14. │ └─parsnip:::add_graf_weights_vec(...) 15. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 16. │ └─parsnip:::predict.censoring_model_reverse_km(...) 17. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 18. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 19. │ ├─purrr:::with_indexed_errors(...) 20. │ │ └─base::withCallingHandlers(...) 21. │ ├─purrr:::call_with_cleanup(...) 22. │ └─parsnip (local) .f(.x[[i]], ...) 23. │ └─stats::predict(object$fit, times = .x, type = "surv") 24. └─base::.handleSimpleError(...) 25. └─purrr (local) h(simpleError(msg, call)) 26. └─cli::cli_abort(...) 27. └─rlang::abort(...) ── Error ('test-importance_perm.R:863:3'): importance_perm() function - censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important::importance_perm(...) at test-importance_perm.R:863:3 2. │ ├─purrr::list_rbind(rlang::eval_tidy(perms_cl)) 3. │ │ └─purrr:::check_list_of_data_frames(x) 4. │ │ └─vctrs::obj_check_list(x, call = error_call) 5. │ └─rlang::eval_tidy(perms_cl) 6. ├─base::lapply(...) 7. │ └─important (local) FUN(X[[i]], ...) 8. │ └─important:::metric_iter(...) 9. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 10. │ ├─generics::augment(wflow, new_data = new_data, eval_time = eval_time) 11. │ └─workflows:::augment.workflow(wflow, new_data = new_data, eval_time = eval_time) 12. │ ├─generics::augment(...) 13. │ └─parsnip:::augment.model_fit(...) 14. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 15. │ ├─dplyr::bind_cols(...) 16. │ │ └─rlang::list2(...) 17. │ ├─stats::predict(...) 18. │ └─parsnip::predict.model_fit(...) 19. │ ├─parsnip::predict_survival(...) 20. │ └─parsnip::predict_survival.model_fit(...) 21. │ ├─parsnip::.censoring_weights_graf(object, res) 22. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 23. │ └─parsnip:::add_graf_weights_vec(...) 24. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 25. │ └─parsnip:::predict.censoring_model_reverse_km(...) 26. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 27. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 28. │ ├─purrr:::with_indexed_errors(...) 29. │ │ └─base::withCallingHandlers(...) 30. │ ├─purrr:::call_with_cleanup(...) 31. │ └─parsnip (local) .f(.x[[i]], ...) 32. │ └─stats::predict(object$fit, times = .x, type = "surv") 33. └─base::.handleSimpleError(...) 34. └─purrr (local) h(simpleError(msg, call)) 35. └─cli::cli_abort(...) 36. └─rlang::abort(...) [ FAIL 3 | WARN 0 | SKIP 23 | PASS 211 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.1
Check: tests
Result: ERROR Running ‘spelling.R’ Running ‘testthat.R’ [29s/59s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(important) Loading required package: recipes Loading required package: dplyr Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Attaching package: 'recipes' The following object is masked from 'package:stats': step > > test_check("important") Saving _problems/test-importance_perm-502.R Saving _problems/test-importance_perm-601.R Saving _problems/test-importance_perm-872.R Attaching package: 'future' The following object is masked from 'package:survival': cluster [ FAIL 3 | WARN 0 | SKIP 23 | PASS 211 ] ══ Skipped tests (23) ══════════════════════════════════════════════════════════ • On CRAN (23): 'test-extract_data.R:69:1', 'test-extract_data.R:224:1', 'test-parallel_utils.R:1:1', 'test-parallel_utils.R:12:1', 'test-parallel_utils.R:46:1', 'test-parallel_utils.R:86:2', 'test-parallel_utils.R:109:2', 'test-parallel_utils.R:135:2', 'test-recipes_utils.R:1:1', 'test-step_predictor_best.R:92:1', 'test-step_predictor_best.R:119:1', 'test-step_predictor_best.R:138:1', 'test-step_predictor_best.R:175:1', 'test-step_predictor_best.R:199:1', 'test-step_predictor_desirability.R:97:1', 'test-step_predictor_desirability.R:172:1', 'test-step_predictor_desirability.R:207:1', 'test-step_predictor_desirability.R:213:1', 'test-step_predictor_desirability.R:241:1', 'test-step_predictor_retain.R:118:1', 'test-step_predictor_retain.R:151:1', 'test-step_predictor_retain.R:195:1', 'test-step_predictor_retain.R:204:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-importance_perm.R:490:3'): compute metrics - original predictors, censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important:::metric_iter(...) at test-importance_perm.R:490:3 2. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 3. │ ├─generics::augment(wflow, new_data = new_data, eval_time = eval_time) 4. │ └─workflows:::augment.workflow(wflow, new_data = new_data, eval_time = eval_time) 5. │ ├─generics::augment(...) 6. │ └─parsnip:::augment.model_fit(...) 7. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 8. │ ├─dplyr::bind_cols(...) 9. │ │ └─rlang::list2(...) 10. │ ├─stats::predict(...) 11. │ └─parsnip::predict.model_fit(...) 12. │ ├─parsnip::predict_survival(...) 13. │ └─parsnip::predict_survival.model_fit(...) 14. │ ├─parsnip::.censoring_weights_graf(object, res) 15. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 16. │ └─parsnip:::add_graf_weights_vec(...) 17. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 18. │ └─parsnip:::predict.censoring_model_reverse_km(...) 19. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 20. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 21. │ ├─purrr:::with_indexed_errors(...) 22. │ │ └─base::withCallingHandlers(...) 23. │ ├─purrr:::call_with_cleanup(...) 24. │ └─parsnip (local) .f(.x[[i]], ...) 25. │ └─stats::predict(object$fit, times = .x, type = "surv") 26. └─base::.handleSimpleError(...) 27. └─purrr (local) h(simpleError(msg, call)) 28. └─cli::cli_abort(...) 29. └─rlang::abort(...) ── Error ('test-importance_perm.R:589:3'): compute metrics - derived predictors, censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important:::metric_iter(...) at test-importance_perm.R:589:3 2. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 3. │ ├─generics::augment(...) 4. │ └─parsnip:::augment.model_fit(...) 5. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 6. │ ├─dplyr::bind_cols(...) 7. │ │ └─rlang::list2(...) 8. │ ├─stats::predict(...) 9. │ └─parsnip::predict.model_fit(...) 10. │ ├─parsnip::predict_survival(...) 11. │ └─parsnip::predict_survival.model_fit(...) 12. │ ├─parsnip::.censoring_weights_graf(object, res) 13. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 14. │ └─parsnip:::add_graf_weights_vec(...) 15. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 16. │ └─parsnip:::predict.censoring_model_reverse_km(...) 17. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 18. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 19. │ ├─purrr:::with_indexed_errors(...) 20. │ │ └─base::withCallingHandlers(...) 21. │ ├─purrr:::call_with_cleanup(...) 22. │ └─parsnip (local) .f(.x[[i]], ...) 23. │ └─stats::predict(object$fit, times = .x, type = "surv") 24. └─base::.handleSimpleError(...) 25. └─purrr (local) h(simpleError(msg, call)) 26. └─cli::cli_abort(...) 27. └─rlang::abort(...) ── Error ('test-importance_perm.R:863:3'): importance_perm() function - censored regression ── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv"))`: i In index: 1. Caused by error in `UseMethod()`: ! no applicable method for 'predict' applied to an object of class "try-error" Backtrace: ▆ 1. ├─important::importance_perm(...) at test-importance_perm.R:863:3 2. │ ├─purrr::list_rbind(rlang::eval_tidy(perms_cl)) 3. │ │ └─purrr:::check_list_of_data_frames(x) 4. │ │ └─vctrs::obj_check_list(x, call = error_call) 5. │ └─rlang::eval_tidy(perms_cl) 6. ├─base::lapply(...) 7. │ └─important (local) FUN(X[[i]], ...) 8. │ └─important:::metric_iter(...) 9. │ └─important:::predictions(wflow_fitted, dat, type, eval_time = eval_time) 10. │ ├─generics::augment(wflow, new_data = new_data, eval_time = eval_time) 11. │ └─workflows:::augment.workflow(wflow, new_data = new_data, eval_time = eval_time) 12. │ ├─generics::augment(...) 13. │ └─parsnip:::augment.model_fit(...) 14. │ └─parsnip:::augment_censored(x, new_data, eval_time = eval_time) 15. │ ├─dplyr::bind_cols(...) 16. │ │ └─rlang::list2(...) 17. │ ├─stats::predict(...) 18. │ └─parsnip::predict.model_fit(...) 19. │ ├─parsnip::predict_survival(...) 20. │ └─parsnip::predict_survival.model_fit(...) 21. │ ├─parsnip::.censoring_weights_graf(object, res) 22. │ └─parsnip:::.censoring_weights_graf.model_fit(object, res) 23. │ └─parsnip:::add_graf_weights_vec(...) 24. │ ├─stats::predict(object$censor_probs, time = y$.weight_time, as_vector = TRUE) 25. │ └─parsnip:::predict.censoring_model_reverse_km(...) 26. │ └─purrr::map_dbl(time, ~predict(object$fit, times = .x, type = "surv")) 27. │ └─purrr:::map_("double", .x, .f, ..., .progress = .progress) 28. │ ├─purrr:::with_indexed_errors(...) 29. │ │ └─base::withCallingHandlers(...) 30. │ ├─purrr:::call_with_cleanup(...) 31. │ └─parsnip (local) .f(.x[[i]], ...) 32. │ └─stats::predict(object$fit, times = .x, type = "surv") 33. └─base::.handleSimpleError(...) 34. └─purrr (local) h(simpleError(msg, call)) 35. └─cli::cli_abort(...) 36. └─rlang::abort(...) [ FAIL 3 | WARN 0 | SKIP 23 | PASS 211 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc