powered by
Given a directory path, check that it exists, and if so, delete all its contents.
eraseDirectory(directory, verbose = TRUE)
Directory whose contents will be deleted
Chatty? Default is TRUE
# NOT RUN { # Path to directory, can tilde expand myPath <- "~/path/to/write/output" # Erase directory # No return value eraseDirectory(directory = myPath) # } # NOT RUN { # }
Run the code above in your browser using DataLab