View source: R/write_rcdf_as.R
write_rcdf_tsv | R Documentation |
Writes each table in the RCDF object as a separate tab-separated '.txt' file.
write_rcdf_tsv(data, path, ..., parent_dir = NULL)
data |
A valid RCDF object. |
path |
The base output directory. |
... |
Additional arguments passed to 'write.table()'. |
parent_dir |
Optional subdirectory under 'path' to group TSV files. |
Invisibly returns 'NULL'. Files are written to disk.
write_rcdf_as
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_tsv(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.