Writes each table in the RCDF object as a separate .csv
file.
Arguments
- data
A valid RCDF object.
- path
The base output directory.
- ...
Additional arguments passed to
write.csv()
.- parent_dir
Optional subdirectory under
path
to group CSV files.
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)
#> Error in check_dbplyr(): The package "dbplyr" is required to communicate with database backends.
temp_dir <- tempdir()
write_rcdf_csv(data = rcdf_data, path = temp_dir)
#> Error: object 'rcdf_data' not found
unlink(temp_dir, force = TRUE)