Skip to content

Commit

Permalink
hack for duplicated rows
Browse files Browse the repository at this point in the history
  • Loading branch information
wibeasley committed Oct 2, 2022
1 parent ef85ea5 commit db7a393
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/redcap-read-eav-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@
#' fields = desired_fields_v1
#' )$data
#'
#' # Repeating
#' token <- "56F43A10D01D6578A46393394D76D88F" # PHI-free demo: Repeating Instruments --Sparse # 2603
#' ds <- REDCapR:::redcap_read_eav_oneshot(redcap_uri=uri, token=token)$data
#' }
# # Specify the column types.
# col_types <- readr::cols(
# record_id = readr::col_integer(),
Expand All @@ -172,7 +176,6 @@
# token = token,
# col_types = col_types
# )$data
#' }

#' @importFrom magrittr %>%
# Intentionally NOT exporting for now: @export
Expand Down Expand Up @@ -303,7 +306,8 @@ redcap_read_eav_oneshot <- function(
# guess_max = guess_max,
locale = locale,
show_col_types = FALSE
),
) %>%
dplyr::distinct(), # https://community.projectredcap.org/questions/135154/replicated-rows-for-eav-output-via-api.html

# Don't print the warning in the try block. Print it below,
# where it's under the control of the caller.
Expand Down
3 changes: 3 additions & 0 deletions man/redcap_read_eav_oneshot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db7a393

Please sign in to comment.