Description Usage Arguments Value Examples
Checks if file extension matches
1 | checkExtension(file, exp_ext)
|
file |
The file of which the extension needs to be checked. |
exp_ext |
The expected extension of the file to be checked. This extension file can be both with or without leading "." For example, inputing .csv or csv will give similar results. |
A TRUE value if the extension matches. And a FALSE value if the extension does not match.
1 | checkExtension(file = "testdata/test1.csv", exp_ext = "csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.