| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/paths.R |
| 3 |
\name{dir_create} |
| 4 |
\alias{dir_create} |
| 5 |
\title{Create a directory recursively by default} |
| 6 |
\usage{ |
| 7 |
dir_create(x, recursive = TRUE, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{x}{A path name.} |
| 11 |
|
| 12 |
\item{recursive}{Whether to create all directory components in the path.} |
| 13 |
|
| 14 |
\item{...}{Other arguments to be passed to \code{\link[=dir.create]{dir.create()}}.} |
| 15 |
} |
| 16 |
\value{ |
| 17 |
A logical value indicating if the directory either exists or is |
| 18 |
successfully created. |
| 19 |
} |
| 20 |
\description{ |
| 21 |
First check if a directory exists. If it does, return \code{TRUE}, otherwise |
| 22 |
create it with \code{\link{dir.create}}\code{(recursive = TRUE)} by default. |
| 23 |
} |