diff --git a/r/tests/testthat/test-dataset-csv.R b/r/tests/testthat/test-dataset-csv.R index 98858a7d166..db1ce20ace9 100644 --- a/r/tests/testthat/test-dataset-csv.R +++ b/r/tests/testthat/test-dataset-csv.R @@ -91,7 +91,7 @@ test_that("CSV scan options", { sb$FragmentScanOptions(options) tab <- sb$Finish()$ToTable() - expect_equal_data_frame(tab, data.frame(chr = c("foo", NA))) + expect_equal_data_frame(tab, data.frame(chr = c("foo", NA), stringsAsFactors = FALSE)) # Set default convert options in CsvFileFormat csv_format <- CsvFileFormat$create(