Description Usage Arguments Value See Also
This function first checks if the path exists. If the path does not exist, it attempts to create the path using
dir.create
with different default values.
1 | dir_create(path, showWarnings = FALSE, recursive = TRUE, mode = "0777")
|
path |
a character vector containing a single path name. Tilde
expansion (see |
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: it will be
coerced by |
The function returns invisible TRUE
if the path exists
or if the path could successfully (and recursively by default) be created. If the path does not exist and the path cannot
be created it throws an error with a hopefully useful message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.