get_ext: Get file's extension.

Description Usage Arguments Value

View source: R/convenience.r

Description

Get file's extension.

Usage

1
get_ext(path)

Arguments

path

The file or connection's name

Value

The file or connection's extension

In most cases, just apply 'tolower(tools::file_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.