View source: R/delete_old_files.R
delete_old_files | R Documentation |
Keep only the most recent file in a directory that matches a pattern
delete_old_files(dir, file_pattern, return_dir = TRUE)
file_pattern |
Regular expression to find matching files |
return_dir |
True/False: Should the function return the working directory |
path |
Path/directory to be searched for matching files |
Defaults to the working directory which helps with piped operations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.