Write a data frame to Parquet (language-neutral interchange)
Source:R/pp-steps.R
pp_write_parquet.RdIntermediate/terminal tables written as Parquet can be read by Python
(pandas/pyarrow), DuckDB, and Nextflow processes — unlike the default .rds
target store. This is the seam that keeps pipelines orchestrator-agnostic.
Examples
if (requireNamespace("arrow", quietly = TRUE)) {
path <- pp_write_parquet(data.frame(a = 1:3, b = 4:6),
file.path(tempdir(), "demo.parquet"))
file.exists(path)
}
#> [1] TRUE