PBSmodelling (version 2.68.8)

cleanProj: Launch a GUI for Project File Deletion

Description

Launches a new window which contains an interface for deleting junk files associated with a prefix and a set of suffixes (e.g., PBSadmb project) from the working directory.

Usage

cleanProj(prefix, suffix, files)

Arguments

prefix

default prefix for file names.

suffix

character vector of suffixes used for clean options.

files

character vector of file names used for clean options.

Author

Anisa Egeli, Vancouver Island University, 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:

1An entry box for the prefix.
The default value of this entry box is taken from prefix.
2Check boxes for each suffix in the suffix argument and
for each file name in the files argument.
3Buttons marked "Select All" and "Select None" for
selecting and clearing all the check boxes, respectively.
4A "Clean" button that deletes files in the working directory
matching one of the following criteria:
(i) file name matches both an expansion of a concatenation of a
prefix in the entry box and a suffix chosen with a check box; or
(ii) file name matches an expansion of a file chosen with a check box.

Examples

Run this code
if (FALSE) {
local(envir=.PBSmodEnv,expr={
  cleanProj(prefix="foo",suffix=c(".a*",".b?",".c","-old.d"),files=c("red","blue"))
})
}

Run the code above in your browser using DataLab