The function provides bare file name without path and extension.

bare_file_name(x)

Arguments

x

A character vector with a file path(s)

Value

A character vector corresponding to file name without path and extension.

Examples

bare_file_name(tempfile(pattern = "some_file", fileext = ".ext"))
#> [1] "some_fileb5f5e395d76"