| append_vtr | R Documentation |
Appends one or more new row groups to the end of an existing .vtr file
without touching or recompressing existing row groups. The schema of x
must exactly match the schema of the target file (same column names and
types, in the same order).
append_vtr(x, path, ...)
x |
A |
path |
File path of an existing |
... |
Additional arguments passed to methods. |
The operation is not fully atomic: if the process is interrupted after
new row groups are written but before the header is patched, the file
will be in a corrupted state. Use write_vtr() for safety-critical
write-once workloads.
Invisible NULL.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars[1:10, ], f)
append_vtr(mtcars[11:20, ], f)
result <- tbl(f) |> collect()
stopifnot(nrow(result) == 20L)
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.