table_write() is the common write path for shard table outputs:
For fixed-size outputs, write into a
shard_table_bufferusing a row selector.For variable-size outputs, write into a
shard_table_sinkusing a shard id.
Examples
# \donttest{
s <- schema(x = float64(), y = int32())
tb <- table_buffer(s, nrow = 10L)
table_write(tb, idx_range(1, 5), data.frame(x = rnorm(5), y = 1:5))
# }