Re-implementation of file_path_sans_ext in tools. This version can handle "." just before the file extenstion, unlike the original implementation.

file_path_sans_ext(x, compression = FALSE)

Arguments

x

Character vector giving file paths.

compression

Logical: should compression extension '.gz', '.bz2' or '.xz' be removed first?

Value

File path without the file extension.