| zstd_decompress_file | R Documentation |
A utility function to decompresses a zstd file to disk.
zstd_decompress_file(input_file, output_file)
input_file |
Path to the zstd file. |
output_file |
Path for the decompressed file. |
No value is returned. The file is written to disk.
infile <- tempfile()
writeBin(as.raw(1:5), infile)
zfile <- tempfile()
zstd_compress_file(infile, zfile, compress_level = 1)
outfile <- tempfile()
zstd_decompress_file(zfile, outfile)
stopifnot(identical(readBin(infile, what = "raw", n = 5), readBin(outfile, what = "raw", n = 5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.