unlink Function in R – Delete Folder Using RStudio (Example Code)
In this R tutorial you’ll learn how to remove working directories on a computer.
Example: Apply unlink() Function to Remove Working Directory
unlink("C:/Users/Data Hacks/example directory/example subdirectory", # Apply unlink() recursive = TRUE) |
unlink("C:/Users/Data Hacks/example directory/example subdirectory", # Apply unlink() recursive = TRUE)