powered by
Check if the provided path has required extension
isFileExtension(file, extension)
A name of the file or full path.
A required extension of the file.
TRUE if the file name (or full path) includes the extension.
TRUE
# NOT RUN { isFileExtension("enum.R", "R") # TRUE isFileExtension("enum.R", "pkml") # FALSE # }
Run the code above in your browser using DataLab