Skip to content

Commit

Permalink
s/file_open/ReadableFile/
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Jan 2, 2019
1 parent 959020c commit 83b5162
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions r/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ S3method(buffer,default)
S3method(buffer,integer)
S3method(buffer,numeric)
S3method(buffer,raw)
S3method(buffer_reader,"arrow::Buffer")
S3method(buffer_reader,default)
S3method(csv_table_reader,"arrow::csv::TableReader")
S3method(csv_table_reader,"arrow::io::InputStream")
S3method(csv_table_reader,character)
Expand Down
2 changes: 1 addition & 1 deletion r/R/csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ csv_table_reader.default <- function(file,
convert_options = csv_convert_options(),
...
){
csv_table_reader(file_open(file),
csv_table_reader(ReadableFile(file),
read_options = read_options,
parse_options = parse_options,
convert_options = convert_options,
Expand Down
2 changes: 1 addition & 1 deletion r/tests/testthat/test-arrow-csv-.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test_that("Can read csv file", {

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

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

0 comments on commit 83b5162

Please sign in to comment.