gzip_files: Compress data files

Description Usage Arguments Details See Also

View source: R/zip_files.R

Description

gzip_files compresses all data files in a directory using gzip, if not already compressed

Usage

1
gzip_files(dir.name = "data/raw", pattern = NULL, recursive = FALSE)

Arguments

dir.name

A string with the name of the directory containing the data files. Defaults to the data/raw directory.

pattern

An optional regular expression. Only file names which match the regular expression will be compressed.

recursive

A boolean indicating whether to include subdirectories

Details

This function takes the name of a directory and checks all of the data files within the directory to if they are already compressed. For each file that is not, it will compress the file using gzip.

See Also

gzip, regex for regular expressions


bgulbis/dirr documentation built on Dec. 26, 2021, 6:40 a.m.