promptSaveFile {PBSmodelling} | R Documentation |
Displays the default save file prompt provided by the Operating System.
promptSaveFile(initialfile="", filetype=list(c("*", "All Files")), save=TRUE)
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. |
The filename and path of file selected by user.
## 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)