-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test that forms work for read & read_oneshot
ref #431
- Loading branch information
Showing
5 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
inst/test-data/specific-redcapr/read-batch-simple/specify-forms-only-1st.R
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
structure(list(record_id = c(1, 2, 3, 4, 5), name_first = c("Nutmeg", | ||
"Tumtum", "Marcus", "Trudy", "John Lee"), name_last = c("Nutmouse", | ||
"Nutmouse", "Wood", "DAG", "Walker"), address = c("14 Rose Cottage St.\nKenning UK, 323232", | ||
"14 Rose Cottage Blvd.\nKenning UK 34243", "243 Hill St.\nGuthrie OK 73402", | ||
"342 Elm\nDuncanville TX, 75116", "Hotel Suite\nNew Orleans LA, 70115" | ||
), telephone = c("(405) 321-1111", "(405) 321-2222", "(405) 321-3333", | ||
"(405) 321-4444", "(405) 321-5555"), email = c("[email protected]", | ||
"[email protected]", "[email protected]", "[email protected]", "[email protected]" | ||
), dob = structure(c(12294, 12121, -13051, -6269, -5375), class = "Date"), | ||
age = c(11, 11, 80, 61, 59), sex = c(0, 1, 1, 0, 1), demographics_complete = c(2, | ||
2, 2, 2, 2)), row.names = c(NA, -5L), class = c("spec_tbl_df", | ||
"tbl_df", "tbl", "data.frame")) |
24 changes: 24 additions & 0 deletions
24
inst/test-data/specific-redcapr/read-oneshot/specify-forms-only-1st.R
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
structure(list(record_id = c(1, 2, 3, 4, 5), name_first = c("Nutmeg", | ||
"Tumtum", "Marcus", "Trudy", "John Lee"), name_last = c("Nutmouse", | ||
"Nutmouse", "Wood", "DAG", "Walker"), address = c("14 Rose Cottage St.\nKenning UK, 323232", | ||
"14 Rose Cottage Blvd.\nKenning UK 34243", "243 Hill St.\nGuthrie OK 73402", | ||
"342 Elm\nDuncanville TX, 75116", "Hotel Suite\nNew Orleans LA, 70115" | ||
), telephone = c("(405) 321-1111", "(405) 321-2222", "(405) 321-3333", | ||
"(405) 321-4444", "(405) 321-5555"), email = c("[email protected]", | ||
"[email protected]", "[email protected]", "[email protected]", "[email protected]" | ||
), dob = structure(c(12294, 12121, -13051, -6269, -5375), class = "Date"), | ||
age = c(11, 11, 80, 61, 59), sex = c(0, 1, 1, 0, 1), demographics_complete = c(2, | ||
2, 2, 2, 2)), row.names = c(NA, -5L), spec = structure(list( | ||
cols = list(record_id = structure(list(), class = c("collector_double", | ||
"collector")), name_first = structure(list(), class = c("collector_character", | ||
"collector")), name_last = structure(list(), class = c("collector_character", | ||
"collector")), address = structure(list(), class = c("collector_character", | ||
"collector")), telephone = structure(list(), class = c("collector_character", | ||
"collector")), email = structure(list(), class = c("collector_character", | ||
"collector")), dob = structure(list(format = ""), class = c("collector_date", | ||
"collector")), age = structure(list(), class = c("collector_double", | ||
"collector")), sex = structure(list(), class = c("collector_double", | ||
"collector")), demographics_complete = structure(list(), class = c("collector_double", | ||
"collector"))), default = structure(list(), class = c("collector_guess", | ||
"collector")), delim = ","), class = "col_spec"), class = c("spec_tbl_df", | ||
"tbl_df", "tbl", "data.frame")) |
17 changes: 17 additions & 0 deletions
17
inst/test-data/specific-redcapr/read-oneshot/specify-forms-only-2nd.R
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
structure(list(race___1 = c(0, 0, 0, 0, 1), race___2 = c(0, 0, | ||
0, 1, 0), race___3 = c(0, 1, 0, 0, 0), race___4 = c(0, 0, 1, | ||
0, 0), race___5 = c(1, 1, 1, 1, 0), race___6 = c(0, 0, 0, 0, | ||
1), ethnicity = c(1, 1, 0, 1, 2), interpreter_needed = c(0, 0, | ||
1, NA, 0), race_and_ethnicity_complete = c(2, 0, 2, 2, 2)), row.names = c(NA, | ||
-5L), spec = structure(list(cols = list(race___1 = structure(list(), class = c("collector_double", | ||
"collector")), race___2 = structure(list(), class = c("collector_double", | ||
"collector")), race___3 = structure(list(), class = c("collector_double", | ||
"collector")), race___4 = structure(list(), class = c("collector_double", | ||
"collector")), race___5 = structure(list(), class = c("collector_double", | ||
"collector")), race___6 = structure(list(), class = c("collector_double", | ||
"collector")), ethnicity = structure(list(), class = c("collector_double", | ||
"collector")), interpreter_needed = structure(list(), class = c("collector_double", | ||
"collector")), race_and_ethnicity_complete = structure(list(), class = c("collector_double", | ||
"collector"))), default = structure(list(), class = c("collector_guess", | ||
"collector")), delim = ","), class = "col_spec"), class = c("spec_tbl_df", | ||
"tbl_df", "tbl", "data.frame")) |
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