-
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 #226 - metadata
is no longer inferred on xportr_write
#227
Conversation
#' @inheritParams xportr_df_label | ||
#' @inheritSection xportr_df_label 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.
metadata
parameter should be the same as xportr_df_label
(Metacore or with dataset name)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #227 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 613 612 -1
=========================================
- Hits 613 612 -1 ☔ View full report in Codecov by Sentry. |
# metadata should not be inferred from the data frame if it is not provided | ||
# by the user. |
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.
Alternatively, we could infer *only* if it's a metacore
instance.
# metadata should not be inferred from the data frame if it is not provided | |
# by the user. | |
# metadata should only be inferred from the data frame if it is a `Metacore` object | |
metadata_tmp <- metadata %||% attr(.df, "_xportr.df_metadata_") | |
if (inherits(metadata_tmp, "Metacore")) metadata <- metadata_tmp |
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.
Thank you Andre!! @cpiraux I think this might fix the length PR as well
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
metadata
should not be infered inxportr_write
#226xportr_write
didn't infermetadata
parameter from data_frame (this behavior is restored with this PR)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.