file_name: Extract file raw name and type from file names

Description Usage Arguments Examples

Description

Extract file raw name and type from file names

Get file extensions without file names

Usage

1
2
3
file_name(filepath)

file_type(filepath)

Arguments

filepath

Character vector. File path(s) to get file raw names without extension nor path OR extension without path nor raw name.

Examples

1
2
3
4
5
6
file_name("file.aux")
file_name("temp/file.R")
file_name("/temp/temp3/music.mp3")
file_type("file.aux")
file_type("temp/file.R")
file_type("/temp/temp3/music.mp3")

lares documentation built on June 9, 2021, 9:06 a.m.