CRAN Package Check Results for Package psm3mkv

Last updated on 2026-10-24 12:51:43 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.3 4.73 325.09 329.82 OK
r-devel-linux-x86_64-debian-gcc 0.3.3 3.39 97.89 101.28 ERROR
r-devel-linux-x86_64-fedora-clang 0.3.3 226.69 OK
r-devel-linux-x86_64-fedora-gcc 0.3.3 210.12 OK
r-devel-windows-x86_64 0.3.3 9.00 295.00 304.00 OK
r-patched-linux-x86_64 0.3.3 4.65 305.56 310.21 OK
r-release-linux-x86_64 0.3.3 4.80 305.48 310.28 OK
r-release-macos-arm64 0.3.3 1.00 65.00 66.00 OK
r-release-macos-x86_64 0.3.3 4.00 257.00 261.00 OK
r-release-windows-x86_64 0.3.3 8.00 277.00 285.00 OK
r-oldrel-macos-arm64 0.3.3 1.00 72.00 73.00 OK
r-oldrel-macos-x86_64 0.3.3 4.00 272.00 276.00 OK
r-oldrel-windows-x86_64 0.3.3 10.00 410.00 420.00 OK

Check Details

Version: 0.3.3
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/30s] 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/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > # Sys.setenv("R_TESTS" = "") > library(testthat) > library(psm3mkv) > > test_check("psm3mkv") Saving _problems/test-basics-33.R Saving _problems/test-fitting-spl-27.R Saving _problems/test-lhoods-101.R [ FAIL 3 | WARN 0 | SKIP 1 | PASS 216 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-discrmd.R:4:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-basics.R:29:1'): (code run outside of `test_that()`) ─────────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. └─flexsurv::flexsurvspline(...) at test-basics.R:29:1 2. ├─base::do.call("flexsurvreg", args) 3. └─flexsurv::flexsurvreg(...) 4. └─dlist$inits(t = wt, mf = m, mml = mml, aux = inits.aux) 5. ├─survival::survfit(cox) 6. └─survival:::survfit.coxph(cox) 7. └─survival:::model.matrix.coxph(object, data = mf) 8. └─stats::delete.response(object$terms) 9. └─stats (local) off(a$specials[[i]]) ── Error ('test-fitting-spl.R:19:1'): (code run outside of `test_that()`) ────── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map2(seq(knot_set), seq(scale_set), ~flexsurv::flexsurvspline(formula = survival::Surv(time = bosonc$pfs.durn, event = bosonc$pfs.flag) ~ 1, k = knot_set[.x], scale = scale_set[.y]))`: i In index: 1. Caused by error in `a$specials[[i]]`: ! subscript out of bounds Backtrace: ▆ 1. ├─purrr::map2(...) at test-fitting-spl.R:19:1 2. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 3. │ ├─purrr:::with_indexed_errors(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ ├─purrr:::call_with_cleanup(...) 6. │ └─psm3mkv (local) .f(.x[[i]], .y[[i]], ...) 7. │ └─flexsurv::flexsurvspline(...) 8. │ ├─base::do.call("flexsurvreg", args) 9. │ └─flexsurv::flexsurvreg(...) 10. │ └─dlist$inits(t = wt, mf = m, mml = mml, aux = inits.aux) 11. │ ├─survival::survfit(cox) 12. │ └─survival:::survfit.coxph(cox) 13. │ └─survival:::model.matrix.coxph(object, data = mf) 14. │ └─stats::delete.response(object$terms) 15. │ └─stats (local) off(a$specials[[i]]) 16. └─purrr (local) `<fn>`(`<sbscOOBE>`) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) ── Error ('test-lhoods.R:101:1'): (code run outside of `test_that()`) ────────── <purrr_error_indexed/rlang_error/error/condition> Error in `purrr::map_chr(fittable$id, ~reglist[[.x]]$result$dlist$name)`: i In index: 1. Caused by error: ! Result must be length 1, not 0. Backtrace: ▆ 1. ├─psm3mkv::find_bestfit(af2$ppd, "aic") at test-lhoods.R:101:1 2. │ └─purrr::map_chr(fittable$id, ~reglist[[.x]]$result$dlist$name) 3. │ └─purrr:::map_("character", .x, .f, ..., .progress = .progress) 4. │ ├─purrr:::with_indexed_errors(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─purrr:::call_with_cleanup(...) 7. └─base::.handleSimpleError(...) 8. └─purrr (local) h(simpleError(msg, call)) 9. └─cli::cli_abort(...) 10. └─rlang::abort(...) [ FAIL 3 | WARN 0 | SKIP 1 | PASS 216 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.3.3
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘example.Rmd’ using rmarkdown Quitting from example.Rmd:113-124 [find_bestfit] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/purrr_error_indexed> Error in `purrr::map_chr()`: ℹ In index: 1. Caused by error: ! Result must be length 1, not 0. --- Backtrace: ▆ 1. └─psm3mkv::find_bestfit(allfits_spl$ppd, "aic") 2. └─purrr::map_chr(fittable$id, ~reglist[[.x]]$result$dlist$name) 3. └─purrr:::map_("character", .x, .f, ..., .progress = .progress) 4. ├─purrr:::with_indexed_errors(...) 5. │ └─base::withCallingHandlers(...) 6. └─purrr:::call_with_cleanup(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'example.Rmd' failed with diagnostics: ℹ In index: 1. Caused by error: ! Result must be length 1, not 0. --- failed re-building ‘example.Rmd’ --- re-building ‘mortality-adjustments.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘mortality-adjustments.Rmd’ SUMMARY: processing the following file failed: ‘example.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc