dir_create: Create a directory recursively by default

Description Usage Arguments Value

View source: R/paths.R

Description

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

Usage

1
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.


xfun documentation built on June 16, 2021, 1:07 a.m.