Closed ddsjoberg closed 1 year ago
the only thing i could find is that
library(ggsurvfit)
#> Loading required package: ggplot2
df_colon %>%
survfit2(Surv(.$time, .$status) ~ surg, data = .) %>%
ggsurvfit(size = 1)
Created on 2022-10-03 by the reprex package (v2.0.1)
results in the time
variable label not being passed through
Thanks for taking a look @shannonpileggi !!
I feel it would be worth adding an example and text in the survfit2 docstring to explain the current behaviour with pipes i.e. on line 64 add something like
df_lung %>% survfit2(Surv(time, status) ~ sex, data = .) %>% summary(times = c(10, 20))
Thanks @bailliem ! I think because we're accounting for a non-standard use of the magrittr pipe (typically it's passed to the first argument), we don't need an example highlighting how to use it this way. Also, Hadley is prepping the purrr v1.0 release, and he's removed all %>%
and replaced them with |>
.
@SHAESEN2 let's address and PARAM changes in a separate PR
What changes are proposed in this pull request?
survfit2()
to include the magrittr.
when it is present.If there is an GitHub issue associated with this pull request, please provide link. closes #93
Reviewer Checklist (if item does not apply, mark is as complete)
renv::install()
_pkgdown.yml
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.withr::with_envvar(new = c("NOT_CRAN" = "true"), covr::report())
. 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")
codemetar::write_codemeta()
usethis::use_spell_check()
again