Learn R Programming

jstor (version 0.3.11)

jst_get_file_name: 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)

Value

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

Arguments

file_path

A path to a file