View source: R/qs_rds_conversion.R
qs_to_rds | R Documentation |
Converts a file saved in the qs2
format to the RDS
format.
qs_to_rds(input_file, output_file, compress_level = 6)
input_file |
The |
output_file |
The |
compress_level |
The gzip compression level to use when writing the RDS file (a value between 0 and 9). |
No value is returned. The converted file is written to disk.
qs_tmp <- tempfile(fileext = ".qs2")
rds_tmp <- tempfile(fileext = ".RDS")
x <- runif(1e6)
qs_save(x, qs_tmp)
qs_to_rds(input_file = qs_tmp, output_file = rds_tmp)
x2 <- readRDS(rds_tmp)
stopifnot(identical(x, x2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.