Wrapper function for gunzip, bunzip

decompress(
  fileToDecompress,
  outDir = file_path_sans_ext(fileToDecompress),
  keep = TRUE,
  overwrite = FALSE
)

Arguments

fileToDecompress

path to file to decompress.

outDir

output directory.

keep

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

overwrite

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

Value

path to unzipped file.

Author

Kathryn Rozen-Gagnon

Examples

 
testFQ <- system.file("extdata/Fox3_Std_small.fq.gz",package="CLIPflexR")
decompress(testFQ,overwrite=TRUE)
#> [1] "/Users/runner/work/_temp/Library/CLIPflexR/extdata/Fox3_Std_small.fq"