-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updating special_dm_cut and date_cut to account for the case that DCU… #187
Conversation
…TDTM (datacut date) is null.
FYI @barnett11 and @reesnj, I had a look through and made a couple of minor changes to special_dm_cut() and date_cut to account for DCUTDTC being null. I've put in some temporary code to add a message to the console if any records of DCUTDTC are null, but it'd be good to see what you both think. Anyway, can discuss more when we meet tomorrow. Thanks! |
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.
Have tested and is working well @alanaharris22 thanks!
Small feedback, the warning message seems to have an odd wrap character within it?
[1] "At least one patient with missing datacut date (cut_var) in the DCUT\n (dataset_cut) dataset, all records for this/these patient(s) will be kept."
…com/pharmaverse/datacutr into 179-allow-dcutdcutdtc-to-be-missing # Conflicts: # NEWS.md
# Conflicts: # .lintr
…github.com/pharmaverse/datacutr into 184-bug-link-to-code-on-github-not-working
…low-dcutdcutdtc-to-be-missing
…github.com/pharmaverse/datacutr into 184-bug-link-to-code-on-github-not-working
…github.com/pharmaverse/datacutr into 184-bug-link-to-code-on-github-not-working
…low-dcutdcutdtc-to-be-missing
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.
Reviewed and both functions appear to work as expected, thanks @alanaharris22. However, I just wanted to highlight that these aren't the only two functions that need updating in order for the entire workflow to work as expected with a missing data cut date. For example, the create_dcut function currently errors if we use a missing data cut date. Does it make sense to update all functions inside one update or should we update each of our functions individually? Including @barnett11 here for his thoughts too.
Thanks @reesnj, I didn't think about create_dcut actually, although would they use this function if they were creating a DCUT dataset with a missing cut date, as we're comparing to a condition on the DS dataset? |
…TDTM (datacut date) is null.
Thank you for your Pull Request! admiraldev have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the datacutr codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the
devel
branch until you have checked off each task.styler::style_file()
to style R and Rmd filesdevtools::document()
so all.Rd
files in theman
folder and theNAMESPACE
file in the project root are updated appropriatelyNEWS.md
if the changes pertain to a user-facing function (i.e. it has an@export
tag) or documentation aimed at users (rather than developers)pkgdown::build_site()
and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.lintr::lint_package()
R CMD check
locally and address all errors and warnings -devtools::check()