bare_filename: Return the bare filename (no path, no extension)

View source: R/my_filename_utils.r

bare_filenameR Documentation

Return the bare filename (no path, no extension)

Description

Return the bare filename (no path, no extension)

Usage

bare_filename(a_filename)

Arguments

a_filename

filename (character).

Details

a_filename can also be a character vector or list of character.

Value

filename without path and extension (character)

Examples

bare_filename(file.path("tmp", "test.dat"))
bare_filename(c(file.path("tmp", "test1.dat"), file.path("tmp", "test2.dat")))
bare_filename(as.list(c(
file.path("tmp", "test1.dat"), file.path("tmp", "test2.dat")
)))

KeesVanImmerzeel/fnamer documentation built on March 22, 2022, 3:21 a.m.