create_dir: Create directories if they don't already exist

View source: R/files.R

create_dirR Documentation

Create directories if they don't already exist

Description

Given the names of (potential) directories, create the ones that do not already exist.

Usage

create_dir(...)

Arguments

...

The names of the directories, specified via relative or absolute paths. Duplicates are ignored.

Value

Invisibly, a vector with a TRUE for each time a directory was actually created and a FALSE otherwise. This vector is named with the paths of the directories that were passed to the function.

Examples

## Not run: 
create_dir(c("mydir", "yourdir"))
remove_dir(c("mydir", "yourdir"))

## End(Not run)

filesstrings documentation built on Feb. 16, 2023, 7:25 p.m.