Launch a GUI for File Deletion
Launches a new window which contains an interface for deleting specified files from the working directory.
cleanWD(files)
files
: character vector of file names used for clean options.All arguments may contain wildcard characters ("*"
to match 0 or more characters, "?"
to match any single character).
The GUI includes the following:
1 | Check boxes for each suffix in the suffix argument and |
for each file name in the files argument. | |
2 | Buttons marked "Select All" and "Select None" for |
selecting and clearing all the check boxes, respectively. | |
3 | A "Clean" button that deletes files in the working directory |
matching file name expansion of files chosen with a check box. |
Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC
## Not run: local(envir=.PBSmodEnv,expr={ cleanWD(c("*.bak","*.tmp","junk*")) }) ## End(Not run)