View source: R/utility_functions.R
dir_create_pipe | R Documentation |
This function is small wrapper on dir.create()
,
returning the path created.
If the directory creation process was unsuccessful, a warning is emitted.
dir_create_pipe(path, showWarnings = TRUE, recursive = FALSE, mode = "0777")
path |
a character vector containing a single path name. Tilde expansion is done. |
showWarnings |
logical; should the warnings on failure be shown? |
recursive |
logical. Should elements of the path other than the last be created?
If true, like the Unix command |
mode |
the mode to be used on Unix-alikes. Default is "0777". |
The path
argument.
## Not run: td <- tempdir() dir_create_pipe(td, recursive = TRUE) unlink(td, force = TRUE, recursive = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.