Skip to content

Commit

Permalink
check locale object
Browse files Browse the repository at this point in the history
ref #377
  • Loading branch information
wibeasley committed Nov 28, 2021
1 parent a2853ba commit e5994dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/redcap-read-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ redcap_read_oneshot <- function(
checkmate::assert_integerish(guess_max , any.missing=FALSE, len=1, lower=1)
checkmate::assert_character(http_response_encoding , any.missing=FALSE, len=1)

checkmate::assert_class( locale, "locale" , null.ok = FALSE)
checkmate::assert_logical( verbose , any.missing=FALSE, len=1, null.ok=TRUE)
checkmate::assert_list( config_options , any.missing=TRUE , null.ok=TRUE)

Expand Down
1 change: 1 addition & 0 deletions R/redcap-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ redcap_read <- function(
if (!is.null(guess_max)) warning("The `guess_max` parameter in `REDCapR::redcap_read()` is deprecated.")

checkmate::assert_character(http_response_encoding , any.missing=FALSE, len=1)
checkmate::assert_class( locale, "locale" , null.ok = FALSE)

checkmate::assert_logical( verbose , any.missing=FALSE, len=1, null.ok=TRUE)
checkmate::assert_list( config_options , any.missing=TRUE , null.ok=TRUE)
Expand Down

0 comments on commit e5994dc

Please sign in to comment.