| zstd_compress_file | R Documentation |
A utility function to compresses a file with zstd.
zstd_compress_file(input_file, output_file, compress_level = qopt("compress_level"))
input_file |
Path to the file to compress. |
output_file |
Path for the compressed file. |
compress_level |
The compression level used. |
No value is returned. The file is written to disk.
infile <- tempfile()
writeBin(as.raw(1:5), infile)
outfile <- tempfile()
zstd_compress_file(infile, outfile, compress_level = 1)
stopifnot(file.exists(outfile))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.