This function writes an RCDF object (a list of data frames) to multiple Parquet files. Each data frame in the list is written to its corresponding Parquet file in the specified path.
Arguments
- data
A list where each element is a data frame or tibble that will be written to a Parquet file.
- path
The directory path where the Parquet files will be written.
- ...
Additional arguments passed to `rcdf::write_parquet()` while writing each Parquet file.
- parent_dir
An optional parent directory to be included in the path where the files will be written.
Examples
dir <- system.file("extdata", package = "rcdf")
rcdf_path <- file.path(dir, 'mtcars.rcdf')
private_key <- file.path(dir, 'sample-private-key.pem')
rcdf_data <- read_rcdf(path = rcdf_path, decryption_key = private_key)
temp_dir <- tempdir()
write_rcdf_parquet(data = rcdf_data, path = temp_dir)
#> [1] "/tmp/RtmpWGXC1Q/mtcars.parquet"
unlink(temp_dir, force = TRUE)