remove_ext: Return the filename without extension.

Description Usage Arguments Value

View source: R/convenience.r

Description

Return the filename without extension.

Usage

1
remove_ext(path)

Arguments

path

The file(s) or connection's name(s) (works with vectors)

Value

The file or connection's name without extension

In most cases, just apply tools::file_path_sans_ext(), but include a special case for connections. It's not required that the file exists.


karldw/kdw.junk documentation built on Sept. 8, 2021, 9:30 p.m.