View source: R/write_parquet.R
write_rcdf_parquet | R Documentation |
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.
write_rcdf_parquet(data, path, ..., parent_dir = NULL)
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. |
A character vector of file paths to the written Parquet files.
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)
unlink(temp_dir, force = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.