OuhscBbmc / REDCapR

R utilities for interacting with REDCap
https://ouhscbbmc.github.io/REDCapR
Other
112 stars 45 forks source link

loosen restrictions on data types in `redcap_log_read()` #525

Closed wibeasley closed 3 weeks ago

wibeasley commented 3 weeks ago

when readr::read_csv() makes guesses about data types, the sparse record column is sometimes guessed to be a boolean. But strings can appear later down in the vector. Then readr will raise a warning.

I'll let everything be a character, except for timestamp (datetime). I'll use readr::cols()'s .default parameter so it accommodates new columns REDCap may add in the future.