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

Closes #88 Use pharmaversesdtm to host admiralpeds test data #115

Merged
merged 10 commits into from
Oct 9, 2024

Conversation

zdz2101
Copy link
Collaborator

@zdz2101 zdz2101 commented Aug 2, 2024

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 devel branch until you have checked off each task.

  • Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
  • Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
  • Updated relevant unit tests or have written new unit tests, which should consider realistic data scenarios and edge cases, e.g. empty datasets, errors, boundary cases etc. - See Unit Test Guide
  • If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
  • Update to all relevant roxygen headers and examples, including keywords and families. Refer to the categorization of functions to tag appropriate keyword/family.
  • Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
  • Address any updates needed for vignettes and/or templates
  • Update NEWS.md if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
  • Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
  • Address or fix all lintr warnings and errors - lintr::lint_package()
  • Run R CMD check locally and address all errors and warnings - devtools::check()
  • Link the issue in the Development Section on the right hand side.
  • Address all merge conflicts and resolve appropriately
  • Pat yourself on the back for a job well done! Much love to your accomplishment!

@zdz2101 zdz2101 changed the title Closes https://github.com/pharmaverse/admiralpeds/issues/40 Use pharmaversesdtm to host admiralpeds test data Closes admiralpeds issue 40 Use pharmaversesdtm to host admiralpeds test data Aug 2, 2024
Copy link

github-actions bot commented Aug 2, 2024

Code Coverage

Package Line Rate Health
pharmaversesdtm 0%
Summary 0% (0 / 41)

@manciniedoardo
Copy link
Collaborator

Do we hold off on this until first release of admiralpeds?

@rossfarrugia
Copy link
Contributor

Do we hold off on this until first release of admiralpeds?

Yes, it should be aligned with this update: pharmaverse/admiralpeds#40. I'm just catching up from last week and looks like we had more review comments for admiralpeds and the team are working through them still so no CRAN submission as of yet...

@rossfarrugia
Copy link
Contributor

@zdz2101 please let us know if you think this one is now ready for review given we've released admiralpeds to CRAN, and me and @Fanny-Gautier could take a look

@zdz2101
Copy link
Collaborator Author

zdz2101 commented Aug 23, 2024

@zdz2101 please let us know if you think this one is now ready for review given we've released admiralpeds to CRAN, and me and @Fanny-Gautier could take a look

this is ready for review, the one on admiralpeds is to demonstrate it does work

@rossfarrugia rossfarrugia changed the title Closes admiralpeds issue 40 Use pharmaversesdtm to host admiralpeds test data Closes #88 Use pharmaversesdtm to host admiralpeds test data Aug 28, 2024
@rossfarrugia rossfarrugia linked an issue Aug 28, 2024 that may be closed by this pull request
.github/CODEOWNERS Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
NEWS.md Show resolved Hide resolved
R/data.R Show resolved Hide resolved
R/data.R Show resolved Hide resolved
@rossfarrugia
Copy link
Contributor

@kaz462 @manciniedoardo @Fanny-Gautier appreciate if you could give this PR a sanity check too.

Comment on lines +238 to +242
VSBLFL = if_else(VISITNUM == 2, "Y", NA_character_),
VISITDY = NA_integer_,
VSDY = NA_integer_,
VSEVAL = NA_character_,
EPOCH = "Epoch"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional to leave those columns blank (including VSBLFL), should we just remove this part and carry values over from the original VS data?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, should VSBLFL be replaced by VSLBOXFL? In the SDTMIG it is stated that VSBLFL is kept only for backward compatibility. See also "4.5.9 Baseline Values" in the SDTMIG.

Copy link
Contributor

@rossfarrugia rossfarrugia Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bundfussr want to make a separate issue on that one in this repo? as it would impact all VS (and any BDS) datasets, not just this peds one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, see #119.

data-raw/vs_peds.R Outdated Show resolved Hide resolved
Copy link
Contributor

@Fanny-Gautier Fanny-Gautier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments added regarding the use of data()

library(admiral)

# Read input test data from pharmaversesdtm ----
data("dm")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could see in another PR that the use of data() should now be avoided. Is it applicable here ?

library(admiral)

# Read input test data from pharmaversesdtm ----
data("vs")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could see in another PR that the use of data() should now be avoided. Is it applicable here ?

data-raw/vs_peds.R Outdated Show resolved Hide resolved
@zdz2101
Copy link
Collaborator Author

zdz2101 commented Sep 16, 2024

@rossfarrugia @Fanny-Gautier This can be reviewed once again

@zdz2101
Copy link
Collaborator Author

zdz2101 commented Oct 9, 2024

@kaz462 @manciniedoardo @rossfarrugia can we merge this? I'm getting a "restricts merging to authorized users"

@manciniedoardo manciniedoardo merged commit 4e25764 into main Oct 9, 2024
16 checks passed
@manciniedoardo manciniedoardo deleted the admiralpeds_data_migration branch October 9, 2024 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Add/Update SDTM test data for {admiralpeds}
6 participants