@@ -23,9 +23,9 @@ test_that("Can read csv file", {
2323
2424 write.csv(iris , tf , row.names = FALSE )
2525
26- tab1 <- read_csv_arrow(tf , as_tibble = FALSE )
27- tab2 <- read_csv_arrow(mmap_open(tf ), as_tibble = FALSE )
28- tab3 <- read_csv_arrow(ReadableFile $ create(tf ), as_tibble = FALSE )
26+ tab1 <- read_csv_arrow(tf , as_dataframe = FALSE )
27+ tab2 <- read_csv_arrow(mmap_open(tf ), as_dataframe = FALSE )
28+ tab3 <- read_csv_arrow(ReadableFile $ create(tf ), as_dataframe = FALSE )
2929
3030 iris $ Species <- as.character(iris $ Species )
3131 tab0 <- Table $ create(!!! iris )
@@ -34,15 +34,15 @@ test_that("Can read csv file", {
3434 expect_equal(tab0 , tab3 )
3535})
3636
37- test_that(" read_csv_arrow(as_tibble =TRUE)" , {
37+ test_that(" read_csv_arrow(as_dataframe =TRUE)" , {
3838 tf <- tempfile()
3939 on.exit(unlink(tf ))
4040
4141 write.csv(iris , tf , row.names = FALSE )
4242
43- tab1 <- read_csv_arrow(tf , as_tibble = TRUE )
44- tab2 <- read_csv_arrow(mmap_open(tf ), as_tibble = TRUE )
45- tab3 <- read_csv_arrow(ReadableFile $ create(tf ), as_tibble = TRUE )
43+ tab1 <- read_csv_arrow(tf , as_dataframe = TRUE )
44+ tab2 <- read_csv_arrow(mmap_open(tf ), as_dataframe = TRUE )
45+ tab3 <- read_csv_arrow(ReadableFile $ create(tf ), as_dataframe = TRUE )
4646
4747 iris $ Species <- as.character(iris $ Species )
4848 expect_equivalent(iris , tab1 )
@@ -170,9 +170,9 @@ test_that("read_csv_arrow() respects col_select", {
170170
171171 write.csv(iris , tf , row.names = FALSE , quote = FALSE )
172172
173- tab <- read_csv_arrow(tf , col_select = starts_with(" Sepal" ), as_tibble = FALSE )
173+ tab <- read_csv_arrow(tf , col_select = starts_with(" Sepal" ), as_dataframe = FALSE )
174174 expect_equal(tab , Table $ create(Sepal.Length = iris $ Sepal.Length , Sepal.Width = iris $ Sepal.Width ))
175175
176- tib <- read_csv_arrow(tf , col_select = starts_with(" Sepal" ), as_tibble = TRUE )
176+ tib <- read_csv_arrow(tf , col_select = starts_with(" Sepal" ), as_dataframe = TRUE )
177177 expect_equal(tib , tibble :: tibble(Sepal.Length = iris $ Sepal.Length , Sepal.Width = iris $ Sepal.Width ))
178178})
0 commit comments