| rmdir | R Documentation |
Remove empty directory under any operating system.
rmdir(path, recursive = FALSE)
path |
a directory name. |
recursive |
whether to remove empty subdirectories as well. |
TRUE for success, FALSE for failure, invisibly.
The base function unlink(dir, recursive=FALSE) does not remove empty
directories in Windows and unlink(dir, recursive=TRUE) removes
non-empty directories, making it unsuitable for tidying up empty ones.
unlink with recursive = TRUE removes non-empty
directories.
mkdir creates a new directory.
clean can be used to remove non-empty directories.
TAF-package gives an overview of the package.
## Not run:
mkdir("emptydir")
rmdir("emptydir")
mkdir("outer/inner")
rmdir("outer", recursive=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.