updating csv tests since R 4.0.0 uses stringsAsFactors = FALSE by default

This commit is contained in:
pegeler 2020-06-03 00:40:50 -04:00
parent ad3aa899dd
commit 032fa2cc78

View File

@ -2,15 +2,13 @@ context("CSV Exports")
# Set up the path and data -------------------------------------------------
metadata <- read.csv(
get_data_location(
"ExampleProject_DataDictionary_2018-06-07.csv"
)
get_data_location("ExampleProject_DataDictionary_2018-06-07.csv"),
stringsAsFactors = TRUE
)
records <- read.csv(
get_data_location(
"ExampleProject_DATA_2018-06-07_1129.csv"
)
get_data_location("ExampleProject_DATA_2018-06-07_1129.csv"),
stringsAsFactors = TRUE
)
redcap_output_csv1 <- REDCap_split(records, metadata)