Given a directory path, check that it exists, and if so, delete all its contents.
Directory whose contents will be deleted
Chatty? Default is TRUE
1 2 3 4 5 6 7 8 9
## Not run: # Path to directory, can tilde expand myPath <- "~/path/to/write/output" # Erase directory # No return value eraseDirectory(directory = myPath) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.