Substitutes a zstd compressed file for a regular input file. The zstd compressed
file is decompressed to the input FUN.
Substitutes a zstd compressed file for a regular output file. The output of FUN is
converted to a zstd compressed file at the target zstd file path.
Usage
zstd_in(
FUN,
...,
envir = parent.frame(),
tmpfile = tempfile(),
max_output_bytes = NULL
)
zstd_out(FUN, ..., envir = parent.frame(), tmpfile = tempfile())Arguments
- FUN
Function to call.
- ...
Arguments passed to
FUN. The first named argument is treated as the file path.- envir
Environment for
FUNevaluation.- tmpfile
Intermediate file path used during conversion. It is removed on exit, whether supplied or auto-generated.
- max_output_bytes
Optional maximum number of decompressed output bytes passed through to
zstd_decompress_file().