Does the input contain a compressed file?
Source:R/check-vector-isCompressedFile.R
check-vector-isCompressedFile.Rd
Does the input contain a compressed file?
Functions
isCompressedFile()
: Vectorized.isACompressedFile()
: Scalar.allAreCompressedFiles()
: Scalar.
Examples
## TRUE ====
x <- c("sample1.fastq.gz", "sample2.fastq.bz2")
invisible(file.create(x))
isCompressedFile(x)
#> [1] TRUE TRUE
unlink(x)
## FALSE ====
x <- c("sample1.fastq", "sample2.fastq")
invisible(file.create(x))
isCompressedFile(x)
#> [1] FALSE FALSE
unlink(x)