write_csv_arrow {arrow}R Documentation

Write CSV file to disk

Description

Write CSV file to disk

Usage

write_csv_arrow(x, sink, include_header = TRUE, batch_size = 1024L)

Arguments

x

data.frame, RecordBatch, or Table

sink

A string file path, URI, or OutputStream, or path in a file system (SubTreeFileSystem)

include_header

Whether to write an initial header line with column names

batch_size

Maximum number of rows processed at a time. Default is 1024.

Value

The input x, invisibly. Note that if sink is an OutputStream, the stream will be left open.

Examples


tf <- tempfile()
on.exit(unlink(tf))
write_csv_arrow(mtcars, tf)


[Package arrow version 6.0.1 Index]