file_base_name: Get file base name

Description Usage Arguments Examples

Description

Extract file's base name without extension (last three characters preceded by '.').

Usage

1

Arguments

file

Vector of paths to files.

Examples

1
2
3
4
file_base_name(c("some/folder/path/end-file.rmd",
                 "some/folder/path/end-file.Rmd",
                 "some/folder/path/end-file.txt",
                 ".end-file", "end-file."))

echasnovski/jeroha documentation built on May 31, 2019, 8:41 a.m.