dir_create: Create a directory recursively by default

View source: R/paths.R

dir_createR Documentation

Create a directory recursively by default

Description

First check if a directory exists. If it does, return TRUE, otherwise create it with dir.create(recursive = TRUE) by default.

Usage

dir_create(x, recursive = TRUE, ...)

Arguments

x

A path name.

recursive

Whether to create all directory components in the path.

...

Other arguments to be passed to dir.create().

Value

A logical value indicating if the directory either exists or is successfully created.


yihui/xfun documentation built on April 29, 2024, 12:16 p.m.