str_filename: Extract filename from a file path.

View source: R/strings.R

str_filenameR Documentation

Extract filename from a file path.

Description

Extract filename from a file path.

Usage

str_filename(x)

Arguments

x

(chr) A path to a filename.

Details

Just a thin wrapper for base::basename().

Value

A character.

Examples

dir(full.names = T) %>% str_filename()

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.