CRAN Package Check Results for Package censored

Last updated on 2025-02-16 09:50:35 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.2 13.24 412.41 425.65 OK
r-devel-linux-x86_64-debian-gcc 0.3.3 10.26 266.09 276.35 OK
r-devel-linux-x86_64-fedora-clang 0.3.3 755.04 OK
r-devel-linux-x86_64-fedora-gcc 0.3.2 650.25 OK
r-devel-macos-arm64 0.3.2 154.00 OK
r-devel-macos-x86_64 0.3.3 292.00 OK
r-devel-windows-x86_64 0.3.3 13.00 329.00 342.00 OK
r-patched-linux-x86_64 0.3.2 13.29 361.80 375.09 ERROR
r-release-linux-x86_64 0.3.3 12.88 399.51 412.39 OK
r-release-macos-arm64 0.3.2 160.00 OK
r-release-macos-x86_64 0.3.3 424.00 OK
r-release-windows-x86_64 0.3.3 15.00 348.00 363.00 OK
r-oldrel-macos-arm64 0.3.2 167.00 OK
r-oldrel-macos-x86_64 0.3.3 387.00 OK
r-oldrel-windows-x86_64 0.3.2 19.00 457.00 476.00 OK

Check Details

Version: 0.3.2
Check: tests
Result: ERROR Running ‘testthat.R’ [241s/308s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(censored) Loading required package: parsnip Loading required package: survival > > test_check("censored") [ FAIL 13 | WARN 0 | SKIP 11 | PASS 609 ] ══ Skipped tests (11) ══════════════════════════════════════════════════════════ • On CRAN (11): 'test-bag_tree-rpart.R:92:3', 'test-proportional_hazards-glmnet.R:30:3', 'test-proportional_hazards-glmnet.R:1081:3', 'test-proportional_hazards-glmnet.R:1109:3', 'test-proportional_hazards-glmnet.R:1118:3', 'test-proportional_hazards-glmnet.R:1140:3', 'test-proportional_hazards-glmnet.R:1247:3', 'test-proportional_hazards-survival.R:143:3', 'test-proportional_hazards.R:10:3', 'test-survival_reg-flexsurvspline.R:465:3', 'test-survival_reg.R:9:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-bag_tree-rpart.R:109:3'): survival predictions ───────────────── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-bag_tree-rpart.R:109:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-boost_tree-mboost.R:73:3'): survival predictions ─────────────── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-boost_tree-mboost.R:73:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-decision_tree-partykit.R:76:3'): survival predictions ────────── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-decision_tree-partykit.R:76:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-decision_tree-rpart.R:65:3'): survival predictions ───────────── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-decision_tree-rpart.R:65:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-proportional_hazards-survival.R:168:3'): survival predictions without strata ── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-proportional_hazards-survival.R:168:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-rand_forest-aorsf.R:88:3'): survival predictions ─────────────── Error in `predict(f_fit, lung_orsf, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-rand_forest-aorsf.R:88:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung_orsf, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung_orsf, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-rand_forest-partykit.R:88:3'): survival predictions ──────────── Error in `predict(f_fit, lung, type = "survival")`: When using `type` values of "survival" or "hazard" a numeric vector `eval_time` should also be given. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-rand_forest-partykit.R:88:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─stats::predict(f_fit, lung, type = "survival") 8. └─parsnip::predict.model_fit(f_fit, lung, type = "survival") 9. └─parsnip:::check_pred_type_dots(object, type, ...) 10. └─cli::cli_abort(...) 11. └─rlang::abort(...) ── Error ('test-survival_reg-flexsurv.R:223:3'): quantile predictions ────────── Error in `p <= 1`: comparison (<=) is not possible for language types Backtrace: ▆ 1. ├─stats::predict(fit_s, new_data = bladder[1:3, ], type = "quantile") at test-survival_reg-flexsurv.R:223:3 2. ├─parsnip::predict.model_fit(...) 3. │ ├─parsnip:::predict_quantile(...) 4. │ └─parsnip::predict_quantile.model_fit(...) 5. │ └─rlang::eval_tidy(pred_call) 6. ├─stats::predict(...) 7. └─flexsurv:::predict.flexsurvreg(...) ── Error ('test-survival_reg-flexsurv.R:400:3'): `fix_xy()` works ────────────── Error in `predict(f_fit, new_data = lung_pred, type = "quantile", quantile = c(0.2, 0.8))`: The ellipses are not used to pass args to the model function's predict function. These arguments cannot be used: "bad_args" Backtrace: ▆ 1. ├─stats::predict(...) at test-survival_reg-flexsurv.R:400:3 2. └─parsnip::predict.model_fit(...) 3. └─parsnip:::check_pred_type_dots(object, type, ...) 4. └─cli::cli_abort(...) 5. └─rlang::abort(...) ── Error ('test-survival_reg-flexsurvspline.R:213:3'): quantile predictions ──── Error in `p <= 1`: comparison (<=) is not possible for language types Backtrace: ▆ 1. ├─stats::predict(fit_s, new_data = bladder[1:3, ], type = "quantile") at test-survival_reg-flexsurvspline.R:213:3 2. ├─parsnip::predict.model_fit(...) 3. │ ├─parsnip:::predict_quantile(...) 4. │ └─parsnip::predict_quantile.model_fit(...) 5. │ └─rlang::eval_tidy(pred_call) 6. ├─stats::predict(...) 7. └─flexsurv:::predict.flexsurvreg(...) ── Error ('test-survival_reg-flexsurvspline.R:408:3'): `fix_xy()` works ──────── Error in `predict(f_fit, new_data = lung_pred, type = "quantile", quantile = c(0.2, 0.8))`: The ellipses are not used to pass args to the model function's predict function. These arguments cannot be used: "bad_args" Backtrace: ▆ 1. ├─stats::predict(...) at test-survival_reg-flexsurvspline.R:408:3 2. └─parsnip::predict.model_fit(...) 3. └─parsnip:::check_pred_type_dots(object, type, ...) 4. └─cli::cli_abort(...) 5. └─rlang::abort(...) ── Error ('test-survival_reg-survival.R:129:3'): prediction of survival time quantile ── Error in `predict(res, head(lung), type = "quantile", quantile = (2:4)/5)`: The ellipses are not used to pass args to the model function's predict function. These arguments cannot be used: "bad_args" Backtrace: ▆ 1. ├─stats::predict(res, head(lung), type = "quantile", quantile = (2:4)/5) at test-survival_reg-survival.R:129:3 2. └─parsnip::predict.model_fit(res, head(lung), type = "quantile", quantile = (2:4)/5) 3. └─parsnip:::check_pred_type_dots(object, type, ...) 4. └─cli::cli_abort(...) 5. └─rlang::abort(...) ── Error ('test-survival_reg-survival.R:212:3'): `fix_xy()` works ────────────── Error in `predict(f_fit, new_data = lung_pred, type = "quantile", quantile = c(0.2, 0.8))`: The ellipses are not used to pass args to the model function's predict function. These arguments cannot be used: "bad_args" Backtrace: ▆ 1. ├─stats::predict(...) at test-survival_reg-survival.R:212:3 2. └─parsnip::predict.model_fit(...) 3. └─parsnip:::check_pred_type_dots(object, type, ...) 4. └─cli::cli_abort(...) 5. └─rlang::abort(...) [ FAIL 13 | WARN 0 | SKIP 11 | PASS 609 ] Error: Test failures Execution halted Flavor: r-patched-linux-x86_64