promptSaveFile {PBSmodelling}R Documentation

Display Save File Dialog

Description

Displays the default save file prompt provided by the Operating System.

Usage

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

Arguments

initialfile file name of text file containing the list.
filetype a list of character vectors indicating what filetypes to look for. Each vector is of length one or two, and specifies the file extension, or "*" (for all filetypes). The second element is an optional name for the file type describing the file type.
save If True display Save file prompt, if False display Open File prompt.

Value

The filename and path of file selected by 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 0.60 Index]