Launch a GUI for Project File Deletion

Share:

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

1
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.

Details

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

The GUI includes the following:

1 An entry box for the prefix.
The default value of this entry box is taken from prefix.
2 Check boxes for each suffix in the suffix argument and
for each file name in the files argument.
3 Buttons marked "Select All" and "Select None" for
selecting and clearing all the check boxes, respectively.
4 A "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.

Author(s)

Anisa Egeli, Vancouver Island University, Nanaimo BC

Examples

1
2
3
4
5
6
## Not run: 
local(envir=.PBSmodEnv,expr={
  cleanProj(prefix="foo",suffix=c(".a*",".b?",".c","-old.d"),files=c("red","blue"))
})

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.