View source: R/has_zip_extension.R
has_zip_extension | R Documentation |
Does a File have a Zip Extension (.zip, .7z)?
has_zip_extension(file, expected = c("zip", "7z"))
file |
path(s) to file(s) to be checked for zip extension |
expected |
expected file name extensions. Default: |
vector of logical
all(has_zip_extension(c("a.zip", "b.ZIP", "c.Zip", "d.7z", "e.7Z"))) # TRUE has_zip_extension("a.txt") # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.