Learn R Programming

lares (version 4.10.6)

file_type: Get file extensions without file names

Description

Get file extensions without file names

Usage

file_type(filepath)

Arguments

filepath

Character vector. File path(s) to get file extensions or types.

Examples

Run this code
# NOT RUN {
file_type("file.aux")
file_type("temp/file.R")
file_type("/temp/temp3/music.mp3")
# }

Run the code above in your browser using DataLab