powered by
Remove empty directory under any operating system.
rmdir(path, recursive = FALSE)
TRUE for success, FALSE for failure, invisibly.
TRUE
FALSE
a directory name.
whether to remove empty subdirectories as well.
unlink with recursive = TRUE removes non-empty directories.
unlink
recursive = TRUE
mkdir creates a new directory.
mkdir
clean can be used to remove non-empty directories.
clean
icesTAF-package gives an overview of the package.
icesTAF-package
if (FALSE) { mkdir("emptydir") rmdir("emptydir") mkdir("outer/inner") rmdir("outer", recursive=TRUE) }
Run the code above in your browser using DataLab