Description Usage Arguments Details
Create directories
1 |
dirs |
Character vector with paths of directories to be created |
recursive |
If TRUE then |
verbose |
If TRUE show a message for each newly created directory |
If a path in ‘dirs’ points to an existing directory, there is
nothing left to do and the directory will just be ignored. If
there is already a file that has the same name as the directory to
be created, an error is thrown. Therefore mkdir
only
returns if every directory in ‘dirs’ either already exists or was
successfully created. Failing early—instead of, for example,
returning a logical vector indicating which of the directories in
‘dirs’ could be created—seems a desirable behavior since later
code depending on the existence of the directories in ‘dirs’ would
fail anyway: There is no need to start possibly long-running
computations just to get an error when trying to write the precious
results to a file in a non-existent directory.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.