str_dirname: Extract directory path from a file path.

View source: R/strings.R

str_dirnameR Documentation

Extract directory path from a file path.

Description

Extract directory path from a file path.

Usage

str_dirname(x)

Arguments

x

(chr) A path to a filename.

Details

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

Value

A character.

Examples

dir(getwd(), full.names = T) %>% str_dirname()

Deleetdk/kirkegaard documentation built on Feb. 28, 2025, 5:04 p.m.