-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding step ribbon function in add_CI()
#440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but please ensure full coverage with UAT where you describe the requirements for these functions and you test them.
Thanks for the quick review @SHAESEN2 ! I was waiting to add unit tests until after the other PR was merged, so I could also use snapshot testing. I've now added the unit tests including some vdiffr checks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. I would still like to see more explanation as to why we would use these functions in the documentation.
I added a sentence. You can add more detail if you'd like to the documentation file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add rationale for function and make clear what you are testing.
Thanks for reviewing @SHAESEN2 ! We've resolved everything except a potential minor documentation and text in the testthat TOC. Those can be updated anytime in the future. I'll try to address your comments for prosperity, but I truly do not think I understand what you're looking for.
You're asking for a rationale why this function exists at all (which I think is pretty obvious), or why do we have a stat version and then also the ability to wrap our stat inside
At the end of the day, it's a test that makes sure the function works with strata and without strata (but that is language specific to a KM plot and this is a general function). I did a visual inspection of the produced figure and saved the snapshot test. |
I would propose to merge and then work on the test / document updates in a seperate issue. @SHAESEN2 and @ddsjoberg |
What changes are proposed in this pull request?
add_CI()
.Created on 2022-07-11 by the reprex package (v2.0.1)
Did you include unit tests for the proposed change/bug fix (https://testthat.r-lib.org/)?
Unit tests are included
If there is an GitHub issue associated with this pull request, please provide link.
closes #319
Checklist for PR reviewer
_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())
. Before you run, begin a fresh R session without any packages loaded.usethis::use_spell_check()
runs with no spelling errors in documentationNEWS.md
been updated with the changes from this pull request under the heading indicating the latest 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")
devtools::build_readme()
to build theREADME.md
file.