The internal method compress_file compresses a file and returns the
path to the result.
compress_file(filename, outputdir, method="gzip", overwrite=FALSE,
remove=TRUE)The path of the compressed file.
character. Path to the file that should be compressed.
character. Path to the output directory.
character. The default value is "gzip", the supported
methods are "gzip" and "bzip2".
logical. If TRUE and the output file already exists
then the file is silently overwritten, otherwise an exception is thrown.
logical. If TRUE then the input file is remove
afterwards, otherwise not.
decompress_file