Skip to content

[R] Add function write_csv_dataset() #36247

Closed

Description

@thisisnic

Describe the enhancement requested

Add function write_csv_dataset() (we don't currently support the functionality needed for write_delim_dataset(), and write_tsv_dataset() - not entirely sure how true this is, so could be worth investigating?), to mirror our open_csv_dataset() function

Component(s)

R

Activity

  1. dgreiss commented on Jul 1, 2023

    @dgreiss
    Contributor

    I can take this one if no one else is working on it.

  2. thisisnic commented on Jul 1, 2023

    @thisisnic
    MemberAuthor

    Fantastic, thanks @dgreiss!

  3. dgreiss commented on Jul 2, 2023

    @dgreiss
    Contributor

    I drafted a PR #36436 for write_csv_dataset, and I also investigated if write_tsx_dataset() and write_delim_dataset() could be implemented. The available options that get passed to the CSV writer are here: https://arrow.apache.org/docs/cpp/api/formats.html#csv-writer .

    There is a delimiter option, and it is defined as Field delimiter, but I'm not entirely sure what that means in this context. If it is the delimiter for values, then it should be relatively straightforward to implement it as an option to the csv writer.

    Of the options listed for the CSV writer class the package currently accepts these :

    • include_header
    • batch_string
    • null_string

    It may be worth while exposing the quoting_style option as well.

  4. dgreiss commented on Jul 4, 2023

    @dgreiss
    Contributor

    I've updated the PR to include these other wrappers.

  5. added a commit that references this issue on Aug 15, 2023
  6. added a commit that references this issue on Aug 25, 2023
  7. added this to the 14.0.0 milestone on Aug 25, 2023
  8. added a commit that references this issue on Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions