Skip to content

Commit

Permalink
avoid warning about converting to factor
Browse files Browse the repository at this point in the history
ref #343
  • Loading branch information
wibeasley committed Jul 21, 2021
1 parent b1e85c4 commit bbf72ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/redcap-read-oneshot-eav.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ redcap_read_oneshot_eav <- function(

ds_2 <-
ds %>%
dplyr::mutate_if(is.character, type.convert) %>%
dplyr::mutate_if(is.character, ~type.convert(., as.is = FALSE)) %>%
dplyr::mutate_if(is.factor , as.character)
}, #Convert the raw text to a dataset.
silent = TRUE #Don't print the warning in the try block. Print it below, where it's under the control of the caller.
Expand Down

0 comments on commit bbf72ac

Please sign in to comment.