Skip to content

Commit

Permalink
Add in options for allow_mixed_structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rsh52 committed Mar 6, 2024
1 parent e476936 commit 71f34ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/read_redcap.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' @param allow_mixed_structure A logical to allow for support of mixed repeating/non-repeating
#' instruments. Setting to `TRUE` will treat the mixed instrument's non-repeating versions
#' as repeating instruments with a single instance. Applies to longitudinal projects
#' only. Default `FALSE`.
#' only. Default `FALSE`. Can be set globally with `options(redcaptidier.allow.mixed.structure = FALSE)`.
#'
#' @examples
#' \dontrun{
Expand All @@ -80,7 +80,7 @@ read_redcap <- function(redcap_uri,
export_data_access_groups = NULL,
suppress_redcapr_messages = TRUE,
guess_max = .Machine$integer.max,
allow_mixed_structure = FALSE) {
allow_mixed_structure = getOption("redcaptidier.allow.mixed.structure", FALSE)) {
check_arg_is_character(redcap_uri, len = 1, any.missing = FALSE)
check_arg_is_character(token, len = 1, any.missing = FALSE)
check_arg_is_valid_token(token)
Expand Down
4 changes: 2 additions & 2 deletions man/read_redcap.Rd

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

0 comments on commit 71f34ad

Please sign in to comment.