Skip to content

Commit

Permalink
s/csv_read/read_csv_arrow/
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Jan 2, 2019
1 parent 7770ec5 commit 951e9f5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion r/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export(cast_options)
export(chunked_array)
export(csv_convert_options)
export(csv_parse_options)
export(csv_read)
export(csv_read_options)
export(csv_table_reader)
export(date32)
Expand All @@ -121,6 +120,7 @@ export(mmap_open)
export(null)
export(print.integer64)
export(read_arrow)
export(read_csv_arrow)
export(read_feather)
export(read_message)
export(read_record_batch)
Expand Down
2 changes: 1 addition & 1 deletion r/R/csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ csv_table_reader.default <- function(file,
#'
#' @param ... Used to construct an arrow::csv::TableReader
#' @export
csv_read <- function(...) {
read_csv_arrow <- function(...) {
csv_table_reader(...)$Read()
}

6 changes: 3 additions & 3 deletions r/man/csv_read.Rd → r/man/read_csv_arrow.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions r/tests/testthat/test-arrow-csv-.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ test_that("Can read csv file", {
tf <- local_tempfile()
write.csv(iris, tf, row.names = FALSE, quote = FALSE)

tab1 <- csv_read(tf)
tab2 <- csv_read(mmap_open(tf))
tab3 <- csv_read(ReadableFile(tf))
tab1 <- read_csv_arrow(tf)
tab2 <- read_csv_arrow(mmap_open(tf))
tab3 <- read_csv_arrow(ReadableFile(tf))

iris$Species <- as.character(iris$Species)
tab0 <- table(iris)
Expand Down

0 comments on commit 951e9f5

Please sign in to comment.