CRAN Package Check Results for Package dcurves

Last updated on 2026-10-24 01:51:31 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.1 10.49 159.95 170.44 OK
r-devel-linux-x86_64-debian-gcc 0.5.1 8.38 106.13 114.51 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.1 112.11 OK
r-devel-linux-x86_64-fedora-gcc 0.5.1 116.30 OK
r-devel-windows-x86_64 0.5.1 14.00 150.00 164.00 OK
r-patched-linux-x86_64 0.5.1 10.11 144.51 154.62 OK
r-release-linux-x86_64 0.5.1 10.53 144.53 155.06 OK
r-release-macos-arm64 0.5.1 3.00 37.00 40.00 OK
r-release-macos-x86_64 0.5.1 7.00 148.00 155.00 OK
r-release-windows-x86_64 0.5.1 12.00 138.00 150.00 OK
r-oldrel-macos-arm64 0.5.0 4.00 35.00 39.00 OK
r-oldrel-macos-x86_64 0.5.1 8.00 170.00 178.00 OK
r-oldrel-windows-x86_64 0.5.1 15.00 185.00 200.00 OK

Check Details

Version: 0.5.1
Check: tests
Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [16s/14s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(dcurves) > > test_check("dcurves") Starting 2 test processes. > test-plot.R: # ggplot2 code to create DCA figure ------------------------------- > test-plot.R: as_tibble(x) %>% > test-plot.R: dplyr::filter(!is.na(net_intervention_avoided)) %>% > test-plot.R: ggplot(aes(x = threshold, y = net_intervention_avoided, color = label)) + > test-plot.R: geom_line() + > test-plot.R: coord_cartesian(ylim = c(0, 1)) + > test-plot.R: scale_x_continuous(labels = scales::percent_format(accuracy = 1)) + > test-plot.R: labs(x = "Threshold Probability", y = "Net reduction in interventions", > test-plot.R: color = "") + > test-plot.R: theme_bw() Saving _problems/test-dca-54.R Saving _problems/test-dca-62.R [ FAIL 2 | WARN 0 | SKIP 0 | PASS 40 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-dca.R:51:3'): dca() works ──────────────────────────────────── Expected `... <- NULL` not to throw any errors. Actually got a <subscriptOutOfBoundsError> with message: subscript out of bounds Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-dca.R:51: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. ├─dcurves::dca(...) 8. │ └─dcurves:::.as_probability(...) 9. │ └─dcurves:::.convert_to_risk(...) 10. │ └─... %>% ... 11. ├─stats::predict(., newdata = new_df, type = "expected") 12. └─survival:::predict.coxph(., newdata = new_df, type = "expected") 13. ├─stats::model.matrix(object, data = mf) 14. └─survival:::model.matrix.coxph(object, data = mf) 15. └─stats::delete.response(object$terms) 16. └─stats (local) off(a$specials[[i]]) ── Error ('test-dca.R:55:3'): dca() works ────────────────────────────────────── <objectNotFoundError/error/condition> Error in `eval(code, test_env)`: object 'dca_surv2' not found Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-dca.R:55:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─... %>% dplyr::pull(net_benefit) 5. ├─dplyr::pull(., net_benefit) 6. ├─dplyr::filter(., threshold == 0.25) 7. └─tibble::as_tibble(.) [ FAIL 2 | WARN 0 | SKIP 0 | PASS 40 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘dca.Rmd’ using rmarkdown Quitting from dca.Rmd:292-310 [unnamed-chunk-14] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/vctrs_error_subscript_oob> Error in `select()`: ! Can't select columns that don't exist. ✖ Column `.se.fit` doesn't exist. --- Backtrace: ▆ 1. ├─... %>% select(-.fitted, -.se.fit) 2. ├─dplyr::select(., -.fitted, -.se.fit) 3. └─dplyr:::select.data.frame(., -.fitted, -.se.fit) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'dca.Rmd' failed with diagnostics: Can't select columns that don't exist. ✖ Column `.se.fit` doesn't exist. --- failed re-building ‘dca.Rmd’ SUMMARY: processing the following file failed: ‘dca.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc