promptSaveFile {PBSmodelling}R Documentation

Display a "Save File" Dialogue

Description

Display the default Save As prompt provided by the Operating System.

Usage

promptSaveFile(initialfile="", filetype=list(c("*", "All Files")), 
               save=TRUE)

Arguments

initialfile file name of the text file containing the list.
filetype a list of character vectors indicating file types made available to users of the GUI. Each vector is of length one or two. The first element specifies either the file extension or "*" for all file types. The second element gives an optional descriptor name for the file type. The supplied filetype list appears as a set of choices in the pull-down box labelled “Files of type:”.
save logical: if TRUE display Save As prompt, if FALSE display Open prompt.

Value

The file name and path of the file selected by the user.

See Also

promptOpenFile

Examples

## Not run: 
#illustrates how to set filetype.
promptSaveFile("intial_file.txt", filetype=list(c(".txt", "text files"), 
               c(".r", "R files"), c("*", "All Files")))
## End(Not run)

[Package PBSmodelling version 2.06 Index]