getFile {RSurvey} | R Documentation |
A pop up a dialog box for the user to select a file to open or save.
getFile(cmd = "Open", exts = NULL, directory = NULL, file = NULL, titleStr = cmd)
cmd |
determines if an "Open" or "Save As" file management pop up dialog box is implemented. |
exts |
an array of default file extensions. |
directory |
specifies that the files in directory should be displayed when the dialog pops up. |
file |
either a character string naming a file or a connection. |
titleStr |
a character string to display as the title of the dialog box. |
A list containing 4 components:
dir |
the directory containing the file. |
path |
the file path |
name |
the file name |
ext |
the file extension |
Fisher, J. C.
getFile()