Closed sophie-gem closed 1 month ago
Package | Line Rate | Health |
---|---|---|
admiral | 96% | ✔ |
Summary | 96% (4798 / 4993) | ✔ |
Apologies for the many names put down as review - wasn't sure who was in the best place to look at this PR. A few notes:
derive_vars_merged()
and derive_vars_transposed()
as I believe these are the only ones where it may be expected. But please let me know if there are others which need this.create_single_dose_dataset()
to error (as @bundfussr suggested) when there are duplicates in the lookup_table
.Sorry this PR comes in late! If there is anything else I need to do, please let me know.
Update get_hori_data()
typo.
@bundfussr should we add tests checking that the relationship argument works within our functions.
Yes, some snapshot checks for the error messages would be nice.
By the way, I am off tomorrow and on Friday.
@bundfussr should we add tests checking that the relationship argument works within our functions.
Yes, some snapshot checks for the error messages would be nice.
By the way, I am off tomorrow and on Friday.
@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work
@sophie-gem Thank you so much! Can you make these updates for the error messaging requested by Stefan? Hoping to finish everything up by Friday. :)
Will try and have it in place by morning US time tomorrow (so around lunchtime-ish UK time).
@sophie-gem Thank you so much! Can you make these updates for the error messaging requested by Stefan? Hoping to finish everything up by Friday. :)
@bundfussr should we add tests checking that the relationship argument works within our functions.
Updated the error messaging. Learnt a lot doing this!
@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work
Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work.
If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!
@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work
Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work.
If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!
All good Sophie - I can try and make some additional tests. Is everything else ready to go? All @bundfussr comments have been addressed?
@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work
Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work. If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!
All good Sophie - I can try and make some additional tests. Is everything else ready to go? All @bundfussr comments have been addressed?
I believe so. Went through and double checked.
@sophie-gem I added a few snapshots tests in - they make testing a lot simpler. Do check it out when you have the time.
I got a couple of tests in - but ran out of time and of low quality. We can write new tests for 1.2.0 as this caused us to dip from 98% to 97%...a catastrophe!! J/K! But has given me pause to think about some other testing ideas - https://github.com/pharmaverse/admiral/discussions/2453
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). 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()