From 2d0e61fd80c54640aa23d5d27f6d09580cefc78b Mon Sep 17 00:00:00 2001 From: Richard Hanna Date: Mon, 14 Oct 2024 15:24:51 -0400 Subject: [PATCH] Update snapshot per laballed vignette update --- tests/testthat/_snaps/write.md | 154 +++++++++++++++++++++++++++++---- 1 file changed, 138 insertions(+), 16 deletions(-) diff --git a/tests/testthat/_snaps/write.md b/tests/testthat/_snaps/write.md index d77388fc..c6943f93 100644 --- a/tests/testthat/_snaps/write.md +++ b/tests/testthat/_snaps/write.md @@ -16,7 +16,8 @@ 9 api_no_access_2 API No Access 2 10 survey Survey 11 repeat_survey Repeat Survey - 12 REDCap Metadata + 12 labelled_vignette Labelled Vignette + 13 REDCap Metadata Repeating or Nonrepeating? # of Rows in Data # of Columns in Data 2 structure data_rows data_cols 3 nonrepeating 4 4 @@ -28,19 +29,21 @@ 9 nonrepeating 4 5 10 nonrepeating 4 9 11 repeating 3 10 - 12 + 12 nonrepeating 4 7 + 13 Data size in Memory % of Data Missing NA Sheet # 2 data_size data_na_pct form_complete_pct Sheet # 3 2.28 kB 0.25 0 1 4 1.94 kB 0.5 0 2 5 2.58 kB 0 0 3 - 6 7.71 kB 0.293103448275862 0 4 + 6 7.71 kB 0.28448275862069 0 4 7 7.40 kB 0.75 0 5 8 1.78 kB 1 0 6 9 2.06 kB 1 0 7 10 3.73 kB 0.392857142857143 0 8 11 3.94 kB 0.142857142857143 0 9 - 12 10 + 12 3.04 kB 0 0 10 + 13 11 [[1]][[2]] Record ID Text Box Input Text Box Input REDCap Instrument Completed? @@ -77,7 +80,7 @@ 2 record_id text note calculated dropdown_single radio_single 3 1 text notes 2 one B 4 2 2 three C - 5 3 + 5 3 2 6 4 2 NA NA NA 2 radio_duplicate_label checkbox_multiple___1 checkbox_multiple___2 @@ -225,6 +228,20 @@ 5 2022-11-09 12:21:04 Complete [[1]][[11]] + Record ID Text Box Radio Buttons Checkbox: A Checkbox: B Checkbox: C + 2 record_id text_box_1 radio_buttons_1 checkbox___1 checkbox___2 checkbox___3 + 3 1 Record 1 A Checked Unchecked Unchecked + 4 2 Record 2 B Checked Checked Unchecked + 5 3 Record 3 C Unchecked Checked Checked + 6 4 Record 4 A Unchecked Unchecked Unchecked + REDCap Instrument Completed? + 2 form_status_complete + 3 Complete + 4 Complete + 5 Complete + 6 Complete + + [[1]][[12]] REDCap Instrument Name REDCap Instrument Description 2 redcap_form_name redcap_form_label 3 @@ -293,6 +310,11 @@ 66 repeat_survey Repeat Survey 67 repeat_survey Repeat Survey 68 repeat_survey Repeat Survey + 69 labelled_vignette Labelled Vignette + 70 labelled_vignette Labelled Vignette + 71 labelled_vignette Labelled Vignette + 72 labelled_vignette Labelled Vignette + 73 labelled_vignette Labelled Vignette Variable / Field Name 2 field_name 3 record_id @@ -361,6 +383,11 @@ 66 repeatsurvey_checkbox_v2___one 67 repeatsurvey_checkbox_v2___two 68 repeatsurvey_checkbox_v2___three + 69 text_box_1 + 70 radio_buttons_1 + 71 checkbox___1 + 72 checkbox___2 + 73 checkbox___3 Field Label Field Type 2 field_label field_type 3 Record ID text @@ -429,6 +456,11 @@ 66 Checkbox Field: Choice 1 checkbox 67 Checkbox Field: Choice 2 checkbox 68 Checkbox Field: Choice 3 checkbox + 69 Text Box text + 70 Radio Buttons radio + 71 Checkbox: A checkbox + 72 Checkbox: B checkbox + 73 Checkbox: C checkbox Section Header Prior to this Field 2 section_header 3 @@ -497,6 +529,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Choices, Calculations, or Slider Labels 2 select_choices_or_calculations 3 @@ -565,6 +602,11 @@ 66 one, Choice 1 | two, Choice 2 | three, Choice 3 67 one, Choice 1 | two, Choice 2 | three, Choice 3 68 one, Choice 1 | two, Choice 2 | three, Choice 3 + 69 + 70 1, A | 2, B | 3, C + 71 1, A | 2, B | 3, C + 72 1, A | 2, B | 3, C + 73 1, A | 2, B | 3, C Field Note Text Validation Type OR Show Slider Number 2 field_note text_validation_type_or_show_slider_number 3 @@ -633,6 +675,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Minimum Accepted Value for Text Validation 2 text_validation_min 3 @@ -701,6 +748,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Maximum Accepted Value for Text Validation Is this Field an Identifier? 2 text_validation_max identifier 3 @@ -769,6 +821,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Branching Logic (Show field only if...) Is this Field Required? 2 branching_logic required_field 3 @@ -837,6 +894,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Custom Alignment Question Number (surveys only) Matrix Group Name 2 custom_alignment question_number matrix_group_name 3 @@ -905,6 +967,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Matrix Ranking? Field Annotation Data Type Count of Missing Values 2 matrix_ranking field_annotation skim_type n_missing 3 @@ -916,7 +983,7 @@ 9 character 0 10 character 3 11 character 3 - 12 numeric 1 + 12 numeric 0 13 factor 2 14 factor 2 15 factor 4 @@ -973,6 +1040,11 @@ 66 logical 0 67 logical 0 68 logical 0 + 69 character 0 + 70 factor 0 + 71 logical 0 + 72 logical 0 + 73 logical 0 Proportion of Non-Missing Values Shortest Value (Fewest Characters) 2 complete_rate character.min 3 @@ -984,7 +1056,7 @@ 9 1 1 10 0.25 4 11 0.25 5 - 12 0.75 + 12 1 13 0.5 14 0.5 15 0 @@ -1041,6 +1113,11 @@ 66 1 67 1 68 1 + 69 1 8 + 70 1 + 71 1 + 72 1 + 73 1 Longest Value (Most Characters) Count of Empty Values Count of Unique Values 2 character.max character.empty character.n_unique 3 @@ -1109,6 +1186,11 @@ 66 67 68 + 69 8 0 4 + 70 + 71 + 72 + 73 Count of Values that are all Whitespace Mean Standard Deviation 2 character.whitespace numeric.mean numeric.sd 3 @@ -1177,6 +1259,11 @@ 66 67 68 + 69 0 + 70 + 71 + 72 + 73 Minimum 25th Percentile Median 75th Percentile Maximum 2 numeric.p0 numeric.p25 numeric.p50 numeric.p75 numeric.p100 3 @@ -1245,6 +1332,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Histogram Is the Categorical Value Ordered? Count of Unique Values 2 numeric.hist factor.ordered factor.n_unique 3 @@ -1313,6 +1405,11 @@ 66 67 68 + 69 + 70 FALSE 3 + 71 + 72 + 73 Most Frequent Values Proportion of TRUE Values Count of Logical Values 2 factor.top_counts logical.mean logical.count 3 @@ -1381,6 +1478,11 @@ 66 0.666666666666667 TRU: 2, FAL: 1 67 0.333333333333333 FAL: 2, TRU: 1 68 0.333333333333333 FAL: 2, TRU: 1 + 69 + 70 A: 2, B: 1, C: 1 + 71 0.5 FAL: 2, TRU: 2 + 72 0.5 FAL: 2, TRU: 2 + 73 0.25 FAL: 3, TRU: 1 Earliest Latest Median Count of Unique Values Earliest 2 Date.min Date.max Date.median Date.n_unique POSIXct.min 3 @@ -1449,6 +1551,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Latest Median Count of Unique Values Minimum 2 POSIXct.max POSIXct.median POSIXct.n_unique difftime.min 3 @@ -1517,6 +1624,11 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 Maximum Median Count of Unique Values 2 difftime.max difftime.median difftime.n_unique 3 @@ -1585,11 +1697,16 @@ 66 67 68 + 69 + 70 + 71 + 72 + 73 [[2]] tab_name tab_sheet tab_ref - 1 Table1 1 A2:I12 + 1 Table1 1 A2:I13 2 Table2 2 A2:D6 3 Table3 3 A2:D6 4 Table4 4 A2:E6 @@ -1599,9 +1716,10 @@ 8 Table8 8 A2:E6 9 Table9 9 A2:I6 10 Table10 10 A2:J5 - 11 Table11 11 A2:AZ68 + 11 Table11 11 A2:G6 + 12 Table12 12 A2:AZ73 tab_xml - 1
+ 1
2
3
4
@@ -1611,7 +1729,8 @@ 8
9
10
- 11
+ 11
+ 12
tab_act 1 1 2 1 @@ -1624,6 +1743,7 @@ 9 1 10 1 11 1 + 12 1 [[3]] [[3]]$fileVersion @@ -1661,7 +1781,8 @@ [8] "" [9] "" [10] "" - [11] "" + [11] "" + [12] "" [[3]]$functionGroups NULL @@ -1715,11 +1836,12 @@ [9] "" [10] "" [11] "" - [12] "" - [13] "" + [12] "" + [13] "" + [14] "" [[5]] - [1] 1 2 3 4 5 6 7 8 9 10 11 + [1] 1 2 3 4 5 6 7 8 9 10 11 12 [[6]] [1] "Table of Contents" "Nonrepeated" @@ -1727,6 +1849,6 @@ [5] "Data Field Types" "Text Input Validation Types" [7] "API No Access" "API No Access 2" [9] "Survey" "Repeat Survey" - [11] "REDCap Metadata" + [11] "Labelled Vignette" "REDCap Metadata"