From 032fa2cc788ade358dfb108cc2ed0c50452ac6e6 Mon Sep 17 00:00:00 2001 From: pegeler <32426645+pegeler@users.noreply.github.com> Date: Wed, 3 Jun 2020 00:40:50 -0400 Subject: [PATCH] updating csv tests since R 4.0.0 uses stringsAsFactors = FALSE by default --- R/tests/testthat/test-csv-exports.R | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/R/tests/testthat/test-csv-exports.R b/R/tests/testthat/test-csv-exports.R index 9e42432..f6bc83c 100644 --- a/R/tests/testthat/test-csv-exports.R +++ b/R/tests/testthat/test-csv-exports.R @@ -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)