-
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.
verify
record_id
not returned by redcap_read_oneshot()
when not requested ref #471
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
inst/test-data/specific-redcapr/read-oneshot/specify-fields-without-record-id.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,11 @@ | ||
structure(list(name_first = c("Nutmeg", "Tumtum", "Marcus", "Trudy", | ||
"John Lee"), 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" | ||
), interpreter_needed = c(0, 0, 1, NA, 0)), row.names = c(NA, | ||
-5L), spec = structure(list(cols = list(name_first = structure(list(), class = c("collector_character", | ||
"collector")), address = structure(list(), class = c("collector_character", | ||
"collector")), interpreter_needed = 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")) |
16 changes: 16 additions & 0 deletions
16
inst/test-data/specific-redcapr/read-oneshot/specify-forms-without-record-id.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,16 @@ | ||
structure(list(height = c(7, 6, 180, 165, 193.04), weight = c(1, | ||
1, 80, 54, 104), bmi = c(204.1, 277.8, 24.7, 19.8, 27.9), comments = c("Character in a book, with some guessing", | ||
"A mouse character from a good book", "completely made up", "This record doesn't have a DAG assigned\n\nSo call up Trudy on the telephone\nSend her a letter in the mail", | ||
"Had a hand for trouble and a eye for cash\n\nHe had a gold watch chain and a black mustache" | ||
), mugshot = c("mugshot-1.jpg", "mugshot-2.jpg", "mugshot-3.jpg", | ||
"mugshot-4.jpg", "mugshot-5.jpg"), health_complete = c(1, 0, | ||
2, 2, 0)), row.names = c(NA, -5L), spec = structure(list(cols = list( | ||
height = structure(list(), class = c("collector_double", | ||
"collector")), weight = structure(list(), class = c("collector_double", | ||
"collector")), bmi = structure(list(), class = c("collector_double", | ||
"collector")), comments = structure(list(), class = c("collector_character", | ||
"collector")), mugshot = structure(list(), class = c("collector_character", | ||
"collector")), health_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