.doubleExt | R Documentation |
This function allows retreiving extensions to filenames similar to file_ext
, but also alllows to retreive selected double-extensions (txt.gz).
The leading dor will ne excluded similar to file_ext
.doubleExt(fiNa, termExt = c("gz", "zip"))
fiNa |
(character) name of file to be tested (may include path) |
termExt |
(character) additional terminal extensions |
The argument termExt
allows specifying additional (terminal) extensions to be recognized.
This function returns a character vector with file-extensions (excluding the leading dot). (Only purely alphanumeric extensions are recognized.)
file_ext
, checkFilePath
fi <- c("ab","ab.c","ab.c.gz","ab.d","ab.d.zip","ab.e")
.doubleExt(fi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.