A graphical user interface (GUI) for selecting files to open or save.
GetFile(cmd = c("Open", "Save As"), file = NULL, exts = NULL,
initialdir = NULL, initialfile = NULL, defaultextension = NULL,
win.title = cmd, multi = FALSE, parent = NULL)
character.
Specifies whether an "Open"
or "Save As"
file management pop up dialog box is implemented.
character.
File name that the data are to be read from.
Alternatively, file
can be a readable text-mode connection
.
character. Vector of default file extensions.
character. Files in this directory will be displayed in the dialog box.
character. File name to display in the dialog box.
character. String appended to the file name if the user enters a file name without an extension.
character. String to display as the title of the dialog box.
logical. If true, multiple files may be selected.
tkwin. GUI parent window
If multi
is false, returns the file path as a character object with the following attributes:
directory containing the file
file name
file extension
file type
# NOT RUN {
GetFile()
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab