write_ipc_stream: Write Arrow IPC stream format

View source: R/ipc-stream.R

write_ipc_streamR Documentation

Write Arrow IPC stream format

Description

Apache Arrow defines two formats for serializing data for interprocess communication (IPC): a "stream" format and a "file" format, known as Feather. write_ipc_stream() and write_feather() write those formats, respectively.

Usage

write_ipc_stream(x, sink, ...)

Arguments

x

data.frame, RecordBatch, or Table

sink

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

...

extra parameters passed to write_feather().

Value

x, invisibly.

See Also

write_feather() for writing IPC files. write_to_raw() to serialize data to a buffer. RecordBatchWriter for a lower-level interface.

Examples

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

arrow documentation built on Sept. 11, 2024, 8:02 p.m.