removeDirectory | R Documentation |
Removes a directory, and if requested, also its contents.
## Default S3 method:
removeDirectory(path, recursive=FALSE, mustExist=TRUE, ...)
path |
A |
recursive |
If |
mustExist |
If |
... |
Not used. |
Returns (invisibly) TRUE
, the directory was successfully removed,
otherwise FALSE
, unless an exception is thrown.
This function can also be used to remove symbolic links to directories
without removing the target.
Note that neither file.remove
() nor unlink
()
is capable of remove symbolic directory links on Windows.
Henrik Bengtsson
Internally unlink
() is used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.