[
https://issues.apache.org/jira/browse/ARROW-11441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373003#comment-17373003
]
Weston Pace commented on ARROW-11441:
-------------------------------------
If you can expose the character vector as an Arrow buffer and then wrap it with
arrow::io::BufferReader you should be able to read it with the CSV reader.
> [R] Read CSV from character vector
> ----------------------------------
>
> Key: ARROW-11441
> URL: https://issues.apache.org/jira/browse/ARROW-11441
> Project: Apache Arrow
> Issue Type: New Feature
> Components: R
> Reporter: Neal Richardson
> Priority: Major
> Fix For: 6.0.0
>
>
> `readr::read_csv()` lets you read in data from a character vector, useful for
> (e.g.) taking the results of a system call and reading it in as a data.frame.
> {code}
> > readr::read_csv(c("a,b", "1,2", "3,4"))
> # A tibble: 2 x 2
> a b
> <dbl> <dbl>
> 1 1 2
> 2 3 4
> {code}
> One solution would be similar to ARROW-9235, perhaps, treating it as a
> textConnection.
> Another solution is to write to a tempfile.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)