check-vector-isCompressedFile | R Documentation |
Does the input contain a compressed file?
isCompressedFile(x)
isACompressedFile(x, nullOk = FALSE)
allAreCompressedFiles(x)
x |
Object. |
nullOk |
|
Currently only performs a simple check, based on file extension match.
TRUE
on success;
FALSE
on failure, with cause set.
isCompressedFile()
: Vectorized.
isACompressedFile()
: Scalar.
allAreCompressedFiles()
: Scalar.
Updated 2023-09-29.
isFile()
.
compressFileExt
.
## TRUE ====
x <- c("sample1.fastq.gz", "sample2.fastq.bz2")
invisible(file.create(x))
isCompressedFile(x)
unlink(x)
## FALSE ====
x <- c("sample1.fastq", "sample2.fastq")
invisible(file.create(x))
isCompressedFile(x)
unlink(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.