Closed janardhanswami closed 5 months ago
I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?
I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.
I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?
I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.
I think it would need to be optional?? I think we do something similar in some of the lab-focused functions with param/cd checks. I'm not sure where it would be called...
I am wondering if there should be a check that makes sure the AVISIT/N are mapped 1-1? @pharmaverse/admiral WDYT?
I think it's a good idea - where do you suggest it runs though? because if we made it its own function we'd have to add it everywhere.
I think it would need to be optional?? I think we do something similar in some of the lab-focused functions with param/cd checks. I'm not sure where it would be called...
agree, maybe it could be a function within admiraldev?
There is an assertion in admiraldev
called assert_one_to_one()
that is used in derive_param_tte()
for example.
Just wanted to know is there anything that need's to be done from my side? @bms63
@janardhanswami nothing needs to be done from your side. apologies that your PR got hijacked for our discussion, but raises a good point.
The failing checks are un-related. I will fix those for you.
@bms63 Just wanted to know do we have any function or method so that we can check 1-1 mapping between certain variables like AVISIT and AVISITN, PARAM and PARAMCD, APERIOD and APERIODN, TRTP and TRTPN, TRTA and TRTAN. If we didn't have any function can we add one to check if the dataset follow the 1-1 relation between certain variables if it doesn't follow 1-1 relation then we can warn them by displaying a warning?
Hi @janardhanswami yes we have some of this capability built in to some functions using this - https://github.com/pharmaverse/admiraldev/blob/8a2b3d8de3d6b4b9122d4517f3a8f86bb4662ea9/R/assertions.R#L1558
I'm thinking that this function does not have this baked in.
Package | Line Rate | Health |
---|---|---|
admiral | 98% | ✔ |
Summary | 98% (4730 / 4818) | ✔ |
Hello @janardhanswami - thanks for your PR! If you like, I can include you in the admiral acknowledgements. If so can I have your full name please?
Hi @manciniedoardo I would love to see my name on the admiral acknowledgements my full name is saijanardhanswami. Thanks for recognizing my small efforts it boosts me a lot to even work more like this :) if possible please share me the link for that acknowledgement page or let me know where I can see that.
Hi @manciniedoardo I would love to see my name on the admiral acknowledgements my full name is saijanardhanswami. Thanks for recognizing my small efforts it boosts me a lot to even work more like this :) if possible please share me the link for that acknowledgement page or let me know where I can see that.
Great to hear! I will add something for Saijanard Hanswami in our June update. Please correct me if I got the spacing wrong.
Hey @manciniedoardo actually the spacing is wrong it should be like this Sai Janardhanswami
Thanks :)
@janardhanswami great! thanks
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 version of it to the same folder.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)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()