-
Notifications
You must be signed in to change notification settings - Fork 64
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 #2513 accept_ms: accept ms as input unit for derive_param_qtc() #2550
Conversation
The failing R-CMD checks will pass once pharmaverse/admiraldev#468 is merged. |
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.
Just a super minor comment regarding the order of "ms" and "msec". I think "ms" should go first everywhere in the documentation as this is the standard unit now. Otherwise I'm happy with the changes.
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.
Should we have a test for differing units? or is that already covered and just not seeing it??
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.
Test 1 tests ms and Test 2 msec.
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.
sorry i meant the tests units are ms and msec in the same the dataset. i have seen this happen a few times over the years where units from different sites differ and are not caught until way later.
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.
The unit must be unique within a parameter. This is also checked by assert_unit()
. We test it in the unit tests for assert_unit()
. I'm not sure if we need to test it for derive_param_qtc()
. Then we would need to test other bad inputs like a wrong unit as well. Usually we don't do this.
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.
If you feel confident that this would be caught, then all is good for me.
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.
@bundfussr what do you think about splitting out the functions into separate files? having everything in ad_adeg.R
has always irked me a bit.
We can make this a good first issue and have someone new do this and not a priority
...we only do this type of organization for this and the advs_params.
Yes, we could do this but I would split by endpoint and not by function. For example, I would keep By the way, I would like to split |
YES PLEASE!! LOVE IT ALL!!!!!! |
@bundfussr I feel like this is good to merge in - the step you add in the GHA makes sense and takes out a manual step. We can always revert if for some reason Remotes has to get back in. |
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
main
branch until you have checked off each task.styler::style_file()
to style R and Rmd filesinst/cheatsheet/admiral_cheatsheet.pptx
and re-upload a PDF and a PNG version of it to the same folder. (The PNG version can be created by taking a screenshot of the PDF version.)devtools::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). A Developer Notes section is available inNEWS.md
for tracking developer-facing issues.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()