file_base_name: Get file base name

Description Usage Arguments Examples

View source: R/tidy-files.R

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 Oct. 9, 2017, 6:45 a.m.