Nicola Crane created ARROW-16480:
------------------------------------

             Summary: [R] Update read_csv_arrow parse_options, read_options, 
and convert_options to take lists
                 Key: ARROW-16480
                 URL: https://issues.apache.org/jira/browse/ARROW-16480
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Nicola Crane


Currently if we want to specify Arrow-specific read options such as encoding, 
we'd have to do something like this:
{code:java}
df <- read_csv_arrow(tf, read_options = CsvReadOptions$create(encoding = 
"utf8")) {code}
We should update the code inside {{read_csv_arrow()}} so that the user can 
specify {{read_options}} as a list which we then pass through to CsvReadOptions 
internally, so we could instead call the much more user-friendly code below:
{code:java}
df <- read_csv_arrow(tf, read_options = list(encoding = "utf8")) {code}
We should then add an example of this to the function doc examples.

 

We also should do the same for parse_options and convert_options.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to