Skip to content
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

Deprecate derive_vars_suppqual #950

Closed
rossfarrugia opened this issue Feb 16, 2022 · 11 comments · Fixed by #1111
Closed

Deprecate derive_vars_suppqual #950

rossfarrugia opened this issue Feb 16, 2022 · 11 comments · Fixed by #1111
Assignees
Labels
documentation Improvements or additions to documentation programming

Comments

@rossfarrugia
Copy link
Collaborator

Deprecate https://github.com/pharmaverse/admiral/blob/main/R/derive_vars_suppqual.R once @statasaurus adds the functionality to metatools, and update any vignettes mentioning this to take it out and we can cover instead in the e2e ADaM creation vignette on the pharmaverse site.

Rationale: Adding/removing suppquals to/from SDTM is not strictly part of ADaM creation, and can be needed for other purposes, such as preparing SDTM for eSub. So we felt this fits better into metatools instead and Christina kindly offered to help support the development effort with @mstackhouse (FYI Mike as you proposed this over email). p.s. i'll remove the SUPPQUAL repo i created in pharmaverse, as was a bad idea in hindsight to have a separate new package for such small functionality.

@rossfarrugia rossfarrugia added documentation Improvements or additions to documentation programming labels Feb 16, 2022
@rossfarrugia rossfarrugia added this to ADaM Product Backlog in admiral core board 🦋 via automation Feb 16, 2022
@bundfussr
Copy link
Collaborator

@statasaurus , tester feedback regarding derive_vars_suppqual():

I can not generate the data for my own protocol dm and suppdm although I run package sample data dm without error. It is due to the fact the Oncology trial SUPPDM data we have have IDVAR and IDVARVAL populated USUBJID and its value besides variable STUDYID/DOMAIN/USUBJID. The current admiral function gives error. Suggested solution: expand function ability to not assume IDVAR and IDVARVAL empty. They could USUBJID and its values.

Can you consider this in your implementation?

@bms63
Copy link
Collaborator

bms63 commented Mar 25, 2022

Do we want to get this into metatools and start the deprecation process for the upcoming CRAN release

@rossfarrugia
Copy link
Collaborator Author

@bms63 - it's there now https://pharmaverse.github.io/metatools/reference/combine_supp.html and i have someone from Roche that has done some user testing and fed back to @statasaurus & @mstackhouse.

Christina could comment as to whether now is a good time to get this out of admiral. The pharmaverse e2e vignette will then help to explain where to get this utility from.

@bms63 bms63 removed the CRAN label Mar 28, 2022
@bms63
Copy link
Collaborator

bms63 commented Mar 28, 2022

This will be interesting as we have only deprecated functions that are replaced by other functions within admiral. Now we are deprecating for something outside admiral, i.e. metatools. I imagine this will happen some more as more packages come online and we shuffle stuff around.

Does this become metatools::derive_vars_suppqual ?
image

Anything else could be problematic for someone picking this up?

@statasaurus
Copy link
Contributor

whether now is a good time to get this out of admiral. The pharmaverse e2e vignette will then help to explain where to get this utility from.

Yes you can! I was waiting on the art for metacore. But that is done. So I am probably push to CRAN for that today and metatools by the end of the week or so

@rossfarrugia
Copy link
Collaborator Author

rossfarrugia commented Mar 29, 2022

@bms63 for the metatools::derive_vars_suppqual point, we wouldn’t want to tie in metatools as a package dependency - it should be optional to use alongside admiral. So my thinking would be just to retire the function completely, remove mention from the vignettes and explain this in the changelog. Then in the pharmaverse e2e vignette we would cover this step. Does that sound ok or shout if I'm missing anything?

@bms63
Copy link
Collaborator

bms63 commented Mar 29, 2022

Umm...I would think some sort of messaging would be nice - beyond just the changelog. Does anyone actually check that besides developers :) ?

Also, thinking of users....for example I'm using it in my code for datasets at GSK and if I installed 0.7.0 and the update crashed my code with no messaging then I would be a bit clueless.

@rossfarrugia
Copy link
Collaborator Author

rossfarrugia commented Mar 29, 2022

Fair, makes sense - agree to give a user message but i'd say no need to then automatically route the code to the metatools function - that was more my point here. a user would need to make that call whether they want to use this new package (and if using on a validated container they'd need to get validated as per their company requirements etc).

Also i'd say a changelog is like a bible for any user too, especially when the package is still evolving so quickly like this one.

@rossfarrugia
Copy link
Collaborator Author

rossfarrugia commented Mar 29, 2022

i see now you were suggesting to show metatools in the documentation/roxygen2 section rather than the code itself - i'm fine with that.

i was saying i dont think we need it in the usual code section we add:

fun_xxx <- function(dataset, new_var) {
  deprecate_warn("x.y.z", "fun_xxx()", "new_fun_xxx()")
  new_fun_xxx(dataset, new_var = new_var)
}

@thomas-neitmann
Copy link
Collaborator

In order to avoid a metatools dependency let's not use the usual

fun_xxx <- function(dataset, new_var) {
  deprecate_warn("x.y.z", "fun_xxx()", "new_fun_xxx()")
  new_fun_xxx(dataset, new_var = new_var)
}

but rather

fun_xxx <- function(dataset, new_var) {
  deprecate_stop("x.y.z", "fun_xxx()", "metatools::new_fun_xxx()")
}

@duniek duniek moved this from admiral core Backlog to For release in admiral core board 🦋 Apr 12, 2022
@millerg23
Copy link
Collaborator

Hi @statasaurus
Are you OK if I make the changes to {admiral} discussed previously in this ticket, assume everything is good from metatools side?

@thomas-neitmann thomas-neitmann moved this from For release 20 May to In Progress in admiral core board 🦋 May 5, 2022
@thomas-neitmann thomas-neitmann moved this from In Progress to In Review in admiral core board 🦋 May 10, 2022
@millerg23 millerg23 linked a pull request May 11, 2022 that will close this issue
13 tasks
@millerg23 millerg23 moved this from In Review to Done in admiral core board 🦋 May 18, 2022
@bms63 bms63 closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation programming
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

6 participants