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 Feb. 28, 2025, 5:04 p.m.