Skip to content

Closes 293 check format tm#325

Merged
bms63 merged 6 commits intomainfrom
293-check-format-TM
Jan 9, 2026
Merged

Closes 293 check format tm#325
bms63 merged 6 commits intomainfrom
293-check-format-TM

Conversation

@cpiraux
Copy link
Collaborator

@cpiraux cpiraux commented Jan 7, 2026

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

Changes Description

Updated check_formats to exclude character variables from the date/time format check

Task List

  • The spirit of xportr is met in your Pull Request
  • Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
  • Summary of changes filled out in the above Changes Description. Can be removed or left blank if changes are minor/self-explanatory.
  • Code is formatted according to the tidyverse style guide. Use styler package and functions to style files accordingly.
  • New functions or arguments follow established convention found in the Wiki.
  • Updated relevant unit tests or have written new unit tests. See our Wiki for conventions used in this package.
  • Creation/updated relevant roxygen headers and examples. See our Wiki for conventions used in this package.
  • Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
  • Run pkgdown::build_site() and check that all affected examples are displayed correctly and that all new/updated functions occur on the "Reference" page.
  • 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)
  • The NEWS.md entry should go under the # xportr development version section. Don't worry about updating the version because it will be auto-updated using the vbump.yaml CI.
  • Address any updates needed for vignettes and/or templates.
  • Link the issue Development Panel so that it closes after successful merging.
  • The developer is responsible for fixing merge conflicts not the Reviewer.
  • Pat yourself on the back for a job well done! Much love to your accomplishment!

@cpiraux cpiraux linked an issue Jan 7, 2026 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Code Coverage

Package Line Rate Health
xportr 99%
Summary 99% (903 / 908)

@cpiraux cpiraux requested a review from bms63 January 7, 2026 20:36
@bms63
Copy link
Collaborator

bms63 commented Jan 7, 2026

Looks great @cpiraux !! Thanks for making this fix.

@bundfussr is this sufficient?

@bundfussr
Copy link
Collaborator

Looks great @cpiraux !! Thanks for making this fix.

@bundfussr is this sufficient?

Unfortunately, it is not sufficient because only character variables are excluded from the check but ARELTM is numeric (and doesn't require a format). I would exclude variables ending in ELTM.

@cpiraux
Copy link
Collaborator Author

cpiraux commented Jan 8, 2026

Looks great @cpiraux !! Thanks for making this fix.
@bundfussr is this sufficient?

Unfortunately, it is not sufficient because only character variables are excluded from the check but ARELTM is numeric (and doesn't require a format). I would exclude variables ending in ELTM.

Thanks @bundfussr! I had only checked SDTM variables and missed the ADaM variable.

I’ve updated the selection to exclude variables ending with ELTM.

@bundfussr
Copy link
Collaborator

Looks great @cpiraux !! Thanks for making this fix.
@bundfussr is this sufficient?

Unfortunately, it is not sufficient because only character variables are excluded from the check but ARELTM is numeric (and doesn't require a format). I would exclude variables ending in ELTM.

Thanks @bundfussr! I had only checked SDTM variables and missed the ADaM variable.

I’ve updated the selection to exclude variables ending with ELTM.

Thanks! I've tested it with our standard templates and it is working now.

Co-authored-by: Stefan Bundfuss <80953585+bundfussr@users.noreply.github.com>
@bms63 bms63 merged commit e92b3cd into main Jan 9, 2026
15 checks passed
@bms63 bms63 deleted the 293-check-format-TM branch January 9, 2026 13:25
schmetti-kim pushed a commit to schmetti-kim/xportr that referenced this pull request Jan 13, 2026
(I think the changes of `xportr_format.Rd` are inherited from PR atorus-research#325. I simply ran `devtools::document()` after my name update.)
(atorus-research#327)
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.

Bug: xportr_format() requires a format for variables ending in TM

3 participants