Base name without the file extension
Value
character
.
Character vector of same length as path
input, with file extension removed.
Returns NA
if no extension is detected.
Examples
path <- c("dir/foo.txt", "bar.tar.gz", "DESCRIPTION")
basenameSansExt(path)
#> [1] "foo" "bar" "DESCRIPTION"