-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add Mixed Repeat/Nonrepeat Instrument Support #177
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1e60016
Introduce enable_repeat_nonrepeat, update tests
9976484
Address Styler & Linter
1698611
Check edits, microbenchmark rerun
4f1b5e8
Update version and NEWS
1054e2c
Add test for clean_redcap_long and test data
5de704f
Fix overwrite bug, simplify code
b22ddfc
Update structure for mixed instruments
cc7bc73
Update API, update vignettes/articles
dba13ed
Update workflow secrets
77e67f8
Typo
357dc17
Update API enable -> allow, add logical check
9e37396
Fix order so nonrepeat mixed vals appear
88fe920
Fix structure field in supertibble
bd1367e
Update tests
e476936
Styler and lintr
71f34ad
Add in options for allow_mixed_structure
rsh52 64c6280
Move convert_mixed_instrument to distill fx
65d5baf
Update R/clean_redcap_long.R
rsh52 e53815b
Fix linter
3b0c0f8
Update microbenchmark
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Package: REDCapTidieR | ||
Type: Package | ||
Title: Extract 'REDCap' Databases into Tidy 'Tibble's | ||
Version: 1.0.0 | ||
Version: 1.1.0 | ||
Authors@R: c( | ||
person("Richard", "Hanna", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0009-0005-6496-8154")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this is fine but noting that one implication of this is that
convert_mixed_instrument()
gets run for every instrument even if it's actually repeating rather than mixed. It works because becausemixed_structure_ref
gets filtered to 0 rows for repeating instruments and thefor
loop inconvert_mixed_instrument()
doesn't run. We do still need tofilter()
mixed_structure_ref
every time to find that out though which could be a performance hit. No need to optimize until it's a problem thoughThere 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.
Does it? The actual conversion is wrapped in a check on
has_mixed_structure_forms
so ifFALSE
(which it would be for the wholemap()
sequence) thenconvert_mixed_instrument()
wouldn't get run unless I'm missing something.REDCapTidieR/R/clean_redcap_long.R
Lines 315 to 317 in 65d5baf
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.
Right but if you have mixed and repeating instruments then
has_mixed_structure_forms
isTRUE
and it gets run for all the repeating instruments in addition to the mixed instruments.