File: dir_create.Rd

package info (click to toggle)
r-cran-xfun 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 680 kB
  • sloc: ansic: 242; sh: 22; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paths.R
\name{dir_create}
\alias{dir_create}
\title{Create a directory recursively by default}
\usage{
dir_create(x, recursive = TRUE, ...)
}
\arguments{
\item{x}{A path name.}

\item{recursive}{Whether to create all directory components in the path.}

\item{...}{Other arguments to be passed to \code{\link{dir.create}()}.}
}
\value{
A logical value indicating if the directory either exists or is
  successfully created.
}
\description{
First check if a directory exists. If it does, return \code{TRUE}, otherwise
create it with \code{\link{dir.create}(recursive = TRUE)} by default.
}