Skip to content

Commit

Permalink
disable checking for now
Browse files Browse the repository at this point in the history
Addresses #127
  • Loading branch information
wibeasley committed Sep 8, 2016
1 parent f0228e7 commit 696b286
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions R/redcap-read-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,25 +179,26 @@ redcap_read_oneshot <- function(
round(elapsed_seconds, 1), " seconds. The http status code was ",
status_code, "."
)

ds <- dplyr::mutate_if(
ds,
is.character,
function(x) dplyr::coalesce(x, "") #Replace NAs with blanks
)

ds <- dplyr::mutate_if(
ds,
is.character,
function( x ) gsub("\r\n", "\n", x, perl=TRUE)
)
ds <- dplyr::mutate_if(
ds,
function( x) inherits(x, "Date"),
as.character
)

ds <- base::as.data.frame(ds)

# browser()
# ds <- dplyr::mutate_if(
# ds,
# is.character,
# function(x) dplyr::coalesce(x, "") #Replace NAs with blanks
# )
#
# ds <- dplyr::mutate_if(
# ds,
# is.character,
# function( x ) gsub("\r\n", "\n", x, perl=TRUE)
# )
# ds <- dplyr::mutate_if(
# ds,
# function( x) inherits(x, "Date"),
# as.character
# )
#
# ds <- base::as.data.frame(ds)

#If an operation is successful, the `raw_text` is no longer returned to save RAM. The content is not really necessary with httr's status message exposed.
raw_text <- ""
Expand Down

0 comments on commit 696b286

Please sign in to comment.