Description Usage Arguments Value Author(s)
Unlike file.remove
which only removes files or empty directories, this one
will recursively delete a directory.
1 | dir.remove(d, debug = FALSE)
|
d |
a path to a directory (or a file) |
debug |
logical: print helpful messages? |
TRUE
or FALSE
based on success. the directory will be deleted. If
FALSE
, you will probably get a message like this:
[1] FALSE
Warning message: In file.remove("blah", recursive = TRUE) :
cannot remove file 'blah', reason 'Directory not
empty'
This probably means that you have hidden files somewhere which
prevent the directory from being deleted. Warnings: if you have any
hidden files, then this code will break. e.g. “.DS_Store” or “._xyz” files.
Mark Cowley, 2009-10-15
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.