pharmaverse / admiral

ADaM in R Asset Library
https://pharmaverse.github.io/admiral
Apache License 2.0
215 stars 60 forks source link

Closes #2442 Fixed advs template and vignette #2450

Closed StefanThoma closed 1 month ago

StefanThoma commented 1 month ago

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.

github-actions[bot] commented 1 month ago

Code Coverage

Package Line Rate Health
admiral 97%
Summary 97% (4728 / 4859)
StefanThoma commented 1 month ago

@bms63 & @manciniedoardo In the ad_adpp template:

pp$PPSTRESC is not a character variable but of type double. all.equal(pp$PPSTRESC, pp$PPSTRESN) is TRUE except for attributes. Is this an error?

All values are numeric, so ADPP AVALC is also all numeric. Therefore, AVALC should not be mapped in the template, right? Or would we expect non-numeric information in pp datasets in general?

manciniedoardo commented 1 month ago

@bms63 & @manciniedoardo In the ad_adpp template:

pp$PPSTRESC is not a character variable but of type double. all.equal(pp$PPSTRESC, pp$PPSTRESN) is TRUE except for attributes. Is this an error?

All values are numeric, so ADPP AVALC is also all numeric. Therefore, AVALC should not be mapped in the template, right? Or would we expect non-numeric information in pp datasets in general?

@jeffreyad any thoughts?

bms63 commented 1 month ago

@bms63 & @manciniedoardo In the ad_adpp template:

pp$PPSTRESC is not a character variable but of type double. all.equal(pp$PPSTRESC, pp$PPSTRESN) is TRUE except for attributes. Is this an error?

All values are numeric, so ADPP AVALC is also all numeric. Therefore, AVALC should not be mapped in the template, right? Or would we expect non-numeric information in pp datasets in general?

AVALC should always be character. Perhaps this is a mistake in the PP dataset.

jeffreyad commented 1 month ago

@bms63 & @manciniedoardo In the ad_adpp template: pp$PPSTRESC is not a character variable but of type double. all.equal(pp$PPSTRESC, pp$PPSTRESN) is TRUE except for attributes. Is this an error? All values are numeric, so ADPP AVALC is also all numeric. Therefore, AVALC should not be mapped in the template, right? Or would we expect non-numeric information in pp datasets in general?

@jeffreyad any thoughts?

Thanks, I put in a PR to update pp$PPSTRESC

https://github.com/pharmaverse/pharmaversesdtm/pull/103

bms63 commented 1 month ago

Thanks @jeffreyad!! we might need to use remotes for pharmaversesdtm @StefanThoma to get the latest once it is merged in.

StefanThoma commented 1 month ago

Thanks @jeffreyad!! we might need to use remotes for pharmaversesdtm @StefanThoma to get the latest once it is merged in.

For ADPP I just remove AVALC altogether.

bms63 commented 1 month ago

Something amiss with the code style and the templates

StefanThoma commented 1 month ago

Something amiss with the code style and the templates

Thanks, should be good now!

bms63 commented 1 month ago

Thanks again @StefanThoma for jumping in on this one!!