-
Notifications
You must be signed in to change notification settings - Fork 68
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
Closes #1728 merged_exist_msrc: Implement derive_flag_select_msrc() #2232
Conversation
I probably can't do a thorough review until Friday - hope that is okay!?! |
Not sure if this has been discussed - are we going to update the current naming convention? if we use |
I have proposed a more consistent naming of the functions in https://phuseaccount.sharepoint.com/:w:/r/sites/Pharmaverse-admiral/Shared%20Documents/Development%20Team%20Working%20Docs/admiral%20Functions%20Overview.docx?d=w64c31636c93c47dda066585be7a8c42b&csf=1&web=1&e=NM6bIA. We decided not to implement it in 1.0 but most likely in 2.0. At first I called the function |
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.
derive_flag_select_msrc
covers the functionality of derive_var_merged_exist_flag() - should we deprecate derive_var_merged_exist_flag
?
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.
This function is going to be very handy and is super clean!!! Always such a an awesome job Stefan!! I just had mostly cosmetic and layout comments.
For function name - can we call it derive_var_merged_ef_msrc()
or something similar instead of derive_flag_select_mrsc()
to keep consistent with our current naming scheme. This makes it easier to look up in the autocomplete in RStudio. I feel like if we go through with your re-naming request on so many functions then users are going to be frustrated anyways - having one function renamed to help with a possible later update doesn't make a lot of sense to me. The users are not going to like 2.0 :( Perhaps @manciniedoardo can make the final call on this functions name for us.
I must admit that I like the look of derive_flag_select_mrsc()
by itself but when look at other merge functions it just seems out of place.
I tend to agree. Our 1.0 release is underpinned by the premise of "maturity" i.e. users can commit to using this version long-term, and the package should be in such a state such that this is possible. One element of this is a consistent user experience, and as @bms63 noted, having a function whose name clashes with other functions just in light of a possible/future 2.0 update doesn't marry with this principle. |
I think this requires discussion. I would not do it for admiral 1.0.0. Maybe you could add it to #2191. |
Agree, let's reduce impact to users for now. |
Renamed as suggested |
@kaz462 do you want to take a look at this or shall we merge in? @zdz2101 is OOO. @bundfussr really awesome job. I'm looking forward to using this function!! |
LGTM! I will add discussion items to 2.0 Roadmap
|
Thank you for your Pull Request! We 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 admiral 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
under the header# admiral (development version)
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()