Learn R Programming

svDialogs (version 0.9-43)

guiDlgOpen: An open file(s) dialog box

Description

Allows to select one or more existing files to be opened.

Usage

guiDlgOpen(title = "Select file", defaultFile = "", defaultDir = "",
    multi = FALSE, filters = c("All files (*.*)", "*.*"), parent = 0,
    GUI = getOption("guiWidgets"))

Arguments

title
the title of the dialog box.
defaultFile
the file name to display by default.
defaultDir
the default dir where to open the dialog box.
multi
is it allowed to select several files at once?
filters
the filters to use. It is a n*2 matrix of characters, with first column being the label and the second being the mask. For instance: "Text files", "*.txt".
parent
the parent of this dialog box (not implemented yet).
GUI
which GUI widgets do you want to use (tcltk, ...).

Value

  • A list with the path to the selected files.

concept

GUI API dialog boxes

See Also

guiDlgSave, guiDlgDir

Examples

Run this code
### TODO...

Run the code above in your browser using DataLab