-
Notifications
You must be signed in to change notification settings - Fork 9
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 #91 length attribute from max data length #213
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #213 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 14 14
Lines 636 664 +28
=========================================
+ Hits 636 664 +28 ☔ View full report in Codecov by Sentry. |
Hi @cpiraux going to have to resolve merge conflicts - a big PR was just merged. Let me know if you need help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on this ❤️
Some minor comments on parameter assertion
Co-authored-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
Co-authored-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
@cpiraux I was missing around with this PR. I noticed that one line had Now this new one is showing up. I ran out of time to investigate. Hoping you see the underlying issue!! |
@averissimo could you take a look at how we are using @cpiraux I had to put in your argument into the vignettes and update the example for Some thoughts:
Okay!! this one is almost to the finish line. Way to go!! |
🤦 I had a typo on the suggestion, sorry about the @bms63 Traced the issue to the "new" order of parameters. vignettes, have variations of the snippet below where they assume that the 3rd element is the adsl %>%
xportr_type(var_spec, "ADSL", "message") %>%
xportr_length(var_spec, "ADSL", "message")
#... |
R/length.R
Outdated
@@ -56,12 +68,14 @@ | |||
#' length = c(10, 8) | |||
#' ) | |||
#' | |||
#' adsl <- xportr_length(adsl, metadata, domain = "adsl") | |||
#' adsl <- xportr_length(adsl, metadata, domain = "adsl", length = "metadata") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#' adsl <- xportr_length(adsl, metadata, domain = "adsl", length = "metadata") | |
#' adsl <- xportr_length(adsl, metadata, domain = "adsl", length_source = "metadata") |
tests/testthat/test-length.R
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these will need to have the argument updated to length_source
vignettes/deepdive.Rmd
Outdated
@@ -194,7 +194,7 @@ To help reduce these repetitive calls, we have created `xportr_metadata()`. A us | |||
adsl %>% | |||
xportr_metadata(var_spec, "ADSL") %>% | |||
xportr_type() %>% | |||
xportr_length() %>% | |||
xportr_length(length = "metadata") %>% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if this can be removed since metadata is default??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close!! Just need to update where ever length is used to length_source
Co-authored-by: Ben Straub <ben.x.straub@gsk.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpiraux You are amazing!! Thanks for seeing this one through for us.
Thank you for your Pull Request!
We have developed a Pull Request template to aid you and our reviewers. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the xportr codebase remains robust and consistent.
The scope of
{xportr}
{xportr}
's scope is to enable R users to write out submission compliantxpt
files that can be delivered to a Health Authority or to downstream validation software programs. We see labels, lengths, types, ordering and formats from a dataset specification object (SDTM and ADaM) as being our primary focus. We also see messaging and warnings to users around applying information from the specification file as a primary focus. Please make sure your Pull Request meets this scope of {xportr}. If your Pull Request moves beyond this scope, please get in touch with the{xportr}
team on slack or create an issue to discuss.Please check off each task box as an acknowledgment that you completed the task. 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.Changes Description
Task List
styler
package and functions to style files accordingly.devtools::document()
so all.Rd
files in theman
folder and theNAMESPACE
file in the project root are updated appropriatelypkgdown::build_site()
and check that all affected examples are displayed correctly and that all new/updated functions occur on the "Reference" page.vbump.yaml
CI.