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