Description Usage Arguments Value See Also
View source: R/Miscellaneous_Functions.R
This is a wrapper for the function dir.create
using different
default settings and allowing multiple path names as input. The function
checks if the provided paths may be valid names and catches any other errors
with try
.
1 | dir_safe_create(paths, showWarnings = FALSE, recursive = TRUE, mode = "0777")
|
paths |
A list or vector of strings. Path names to be created. |
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 |
An invisible list of length equal to the length of paths
. The
elements are NULL
for invalid elements of paths
, a logical
value for the elements of paths
with a successful calls to
dir.create
, or an object of class try-error
for a
failed call to dir.create
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.