Skip to contents

Get the file extension from a provided filepath

Usage

file_extension(file)

Arguments

file

character. Filepath

Value

character

Examples

file_extension("my_file.txt")
#> [1] "txt"