file.path2: Function to Construct Path to Files

View source: R/filepath2.R

file.path2R Documentation

Function to Construct Path to Files

Description

Works as file.path() but automatically creates a directory when missing.

Usage

file.path2(..., recursive = TRUE, mode = "0777", fsep = .Platform$file.sep)

Arguments

...

Character vectors as in file.path().

recursive

As in dir.create().

mode

As in dir.create().

fsep

Path separator as in file.path().

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

file.path2(tempdir(), 'test', 'blub')


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.