list_of_paths_to_basenames: Extracts and concatenates (possibly multiple) basenames from...

View source: R/utils.R

list_of_paths_to_basenamesR Documentation

Extracts and concatenates (possibly multiple) basenames from paths.

Description

Basenames are concatenated if there are multiple paths per input.

Usage

list_of_paths_to_basenames(paths)

Arguments

paths

A list of character vectors representing file or url paths.

Value

The basenames as a flattened character vector.

Examples

paths <- list('a/b.w', c('c/d.x', 'e/f.y'), 'g/h.z')
list_of_paths_to_basenames(paths)

charlieccarey/monarchr documentation built on Dec. 12, 2023, 12:57 p.m.