PBSmodelling (version 2.68.8)

cleanWD: Launch a GUI for File Deletion

Description

Launches a new window which contains an interface for deleting specified files from the working directory.

Usage

cleanWD(files)

Arguments

files

character vector of file names used for clean options.

Author

Rowan Haigh, Pacific Biological Station, Fisheries and Oceans Canada, Nanaimo BC

Details

All arguments may contain wildcard characters ("*" to match 0 or more characters, "?" to match any single character).

The GUI includes the following:

1Check boxes for each suffix in the suffix argument and
for each file name in the files argument.
2Buttons marked "Select All" and "Select None" for
selecting and clearing all the check boxes, respectively.
3A "Clean" button that deletes files in the working directory
matching file name expansion of files chosen with a check box.

Examples

Run this code
if (FALSE) {
local(envir=.PBSmodEnv,expr={
  cleanWD(c("*.bak","*.tmp","junk*"))
})
}

Run the code above in your browser using DataCamp Workspace