Running ‘testthat.R’ [323s/373s]
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 3 | WARN 0 | SKIP 12 | PASS 628 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • On CRAN (10): 'test-proportional_hazards-glmnet.R:29:3',
    'test-proportional_hazards-glmnet.R:899:3',
    'test-proportional_hazards-glmnet.R:927:3',
    'test-proportional_hazards-glmnet.R:936:3',
    'test-proportional_hazards-glmnet.R:958:3',
    'test-proportional_hazards-glmnet.R:1065:3',
    'test-proportional_hazards-survival.R:150:3',
    'test-proportional_hazards.R:10:3',
    'test-survival_reg-flexsurvspline.R:420:3', 'test-survival_reg.R:9:3'
  • aorsf cannot be loaded (2): 'test-rand_forest-aorsf.R:4:3',
    'test-rand_forest-aorsf.R:36:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rand_forest-aorsf.R:177:3'): `fix_xy()` works ──────────────────
  Error in `check_installs(object)`: This engine requires some package installs: 'aorsf'
  Backtrace:
      ▆
   1. ├─generics::fit(spec, Surv(time, status) ~ age + ph.ecog, data = lung_orsf) at test-rand_forest-aorsf.R:177:3
   2. └─parsnip::fit.model_spec(...)
   3.   └─parsnip:::check_installs(object)
   4.     └─rlang::abort(...)
  ── Failure ('test-rand_forest-aorsf.R:215:3'): can handle case weights ─────────
  `{ ... }` threw an unexpected error.
  Message: This engine requires some package installs: 'aorsf'
  Class:   rlang_error/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-rand_forest-aorsf.R:215: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. ├─... %>% ... at test-rand_forest-aorsf.R:217:7
    8. ├─generics::fit(., Surv(time, event) ~ ., data = dat$full, case_weights = dat$wts)
    9. └─parsnip::fit.model_spec(...)
   10.   └─parsnip:::check_installs(object)
   11.     └─rlang::abort(...)
  ── Error ('test-rand_forest-aorsf.R:225:3'): can handle case weights ───────────
  Error in `eval(code, test_env)`: object 'wt_fit' not found
  Backtrace:
      ▆
   1. └─testthat::expect_equal(attr(wt_fit$fit, "weights_user"), as.vector(dat$wts)) at test-rand_forest-aorsf.R:225:3
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  
  [ FAIL 3 | WARN 0 | SKIP 12 | PASS 628 ]
  Error: Test failures
  Execution halted