Wrapper function for gzip, bzip

compress(
  fileToCompress,
  keep = TRUE,
  methodCompress = "gzip",
  overwrite = FALSE
)

Arguments

fileToCompress

path to file to compress.

keep

keep (don't delete) input files, TRUE (default) or FALSE.

methodCompress

method to use for compression.

overwrite

overwrite existing output files, TRUE or FALSE (default).

Value

path to zipped file.

Author

Kathryn Rozen-Gagnon

Examples

 
testFQ <- system.file("extdata/Fox3_Std_small.fq.gz",package="CLIPflexR")
decom <- decompress(testFQ,overwrite=TRUE)
com <- compress(decom,overwrite=TRUE)