powered by
A utility function to compresses a file with zstd.
zstd_compress_file(input_file, output_file, compress_level = qopt("compress_level"))
No value is returned. The file is written to disk.
Path to the file to compress.
Path for the compressed file.
The compression level used.
infile <- tempfile() writeBin(as.raw(1:5), infile) outfile <- tempfile() zstd_compress_file(infile, outfile, compress_level = 1) stopifnot(file.exists(outfile))
Run the code above in your browser using DataLab