This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 11780b96d5 GH-35425: [R] Tests failures on R < 4.0 due to data.frame
conversion (#35432)
11780b96d5 is described below
commit 11780b96d5acb53c7bf753b6ab95e77e7c38bd57
Author: Nic Crane <[email protected]>
AuthorDate: Thu May 11 09:16:56 2023 +0200
GH-35425: [R] Tests failures on R < 4.0 due to data.frame conversion
(#35432)
* Closes: #35425
Authored-by: Nic Crane <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
---
r/tests/testthat/test-dataset-csv.R | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/r/tests/testthat/test-dataset-csv.R
b/r/tests/testthat/test-dataset-csv.R
index 98858a7d16..db1ce20ace 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(