Learn R Programming

PBSmodelling (version 2.68.6)

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.

Details

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

Examples

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

Run the code above in your browser using DataLab