pharmaverse / admiral

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

Close Issue #2461 FIX documentation to display added LOCF records #2475

Open jimrothstein opened 2 weeks ago

jimrothstein commented 2 weeks ago

NOT FINISHED First attempt to fix immediate problem. Wish to review code and suggest, possibily, comments.

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.

jimrothstein commented 2 weeks ago

2461 fix should now pass tests.

I would like spend a day or so to work through R code for derive_locf_records. The idea, add missing observations, makes sense, but want to understand code details.

bms63 commented 2 weeks ago

Hi @jimrothstein thanks for working on this - here is our programming strategy if you want to understand some more about our design choices. https://pharmaverse.github.io/admiraldev/dev/articles/programming_strategy.html

jimrothstein commented 2 weeks ago

@bms63 Yes, programming_strategy is excellent!

Working through it. jim

bms63 commented 6 days ago

Hi @jimrothstein did this comment get incorporated? I just glanced, but feel like the other one got implemented. I feel @bundfussr suggestion is better solution then re-arranging the data image

Also admiral convention is to try and not use :: since we use library(dplyr) at the top of the examples

jimrothstein commented 6 days ago

Ok!

jimrothstein commented 5 days ago

Just an annotation/footnote

Also admiral convention is to try and not use :: since we use library(dplyr) at the top of the examples

from programmming stategy https://pharmaverse.github.io/admiraldev/articles/programming_strategy.html

@examples: A fully self-contained example of how to use the function. Self-contained means that, if this code is executed in a new R sessionit will run without errors. That means any packages need to be loaded with library() and any datasets needed either to be created directly inside the example code or loaded using data(). If a dataset is created in the example, it should be done so using the function tribble() (specify library(dplyr) before calling this function). If other functions are called in the example, please specify library(pkg_name) then refer to the respective function fun() as opposed to the preferred pkg_name::fun() notation as specified in [Unit Test Guidance](https://pharmaverse.github.io/admiraldev/articles/unit_test_guidance.html

manciniedoardo commented 4 days ago

@jimrothstein sorry have you implemented those changes as suggested by @bundfussr ? Looks the same as before to me. thanks

jimrothstein commented 4 days ago

@manciniedoardo , @bms63 I completely misread an earlier comment, apologies. Will work on @bundfussr suggestion … get back to you.

@jimrothstein sorry have you implemented those changes as suggested by @bundfussr ? Looks the same as before to me. thanks