jst_get_file_name: Extract the basename of a path

View source: R/helpers.R

jst_get_file_nameR Documentation

Extract the basename of a path

Description

This helper simply extracts the basename of a path and removes the extension, e.g. foo/bar.txt is shortened to bar.

Usage

jst_get_file_name(file_path)

Arguments

file_path

A path to a file

Value

A character vector, containing the basename of the file without an extension.


jstor documentation built on Aug. 16, 2023, 5:09 p.m.