As of {survival} v3.6-4, the number censored are now returned as a matrix for multi-state models (i.e. competing risks models). The tidy_survfit() function has been updated to account for this new structure and the minimum version of {survival} has been increased to the latest version.
closes #199
Reviewer Checklist (if item does not apply, mark as complete)
[x] Ensure all package dependencies are installed by running renv::install()
[x] PR branch has pulled the most recent updates from master branch. Ensure the pull request branch and your local version match and both have the latest updates from the master branch.
[x] If a new function was added, function included in _pkgdown.yml
[x] If a bug was fixed, a unit test was added for the bug check
[x] Run pkgdown::build_site(). Check the R console for errors, and review the rendered website.
[x] Overall code coverage remains >99.5%. Review coverage with withr::with_envvar(list(CI = TRUE), code = devtools::test_coverage()). Begin in a fresh R session without any packages loaded.
[x] R CMD Check runs without errors, warnings, and notes
[x] usethis::use_spell_check() runs with no spelling errors in documentation
When the branch is ready to be merged into master:
[x] Update NEWS.md with the changes from this pull request under the heading "# ggsurvfit (development version)". If there is an issue associated with the pull request, reference it in parentheses at the end update (see NEWS.md for examples).
[x] Increment the version number using usethis::use_version(which = "dev")
What changes are proposed in this pull request?
tidy_survfit()
function has been updated to account for this new structure and the minimum version of {survival} has been increased to the latest version.closes #199
Reviewer Checklist (if item does not apply, mark as complete)
renv::install()
_pkgdown.yml
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.withr::with_envvar(list(CI = TRUE), code = devtools::test_coverage())
. Begin in a fresh R session without any packages loaded.usethis::use_spell_check()
runs with no spelling errors in documentationWhen the branch is ready to be merged into master:
NEWS.md
with the changes from this pull request under the heading "# ggsurvfit (development version)
". If there is an issue associated with the pull request, reference it in parentheses at the end update (seeNEWS.md
for examples).usethis::use_version(which = "dev")
usethis::use_spell_check()
again