mkdirs | R Documentation |
Creates a directory including any necessary but nonexistent parent directories.
## Default S3 method:
mkdirs(pathname, mustWork=FALSE, maxTries=5L, ...)
pathname |
A |
mustWork |
If |
maxTries |
A positive |
... |
Not used. |
Returns TRUE
if the directory was successfully created,
otherwise FALSE
.
Note that if the directory already exists, FALSE
is returned.
On very rare occasions, we have observed on a large shared file
system that if one tests for the existence of a directory immediately
after creating it with dir.create
(), it may appear not
to be created. We believe this is due to the fact that there is a
short delay between creating a directory and that information being
fully propagated on the file system. To minimize the risk for such
false assertions on "slow" file systems, this method tries to create
a missing directory multiple times (argument maxTries
) (while
waiting a short period of time between each round) before giving up.
Henrik Bengtsson
Internally dir.create
() is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.