dialog for file and directory selection
dialog for file and directory selection
generic for toolkit dispatch
Basically an entry box instance with a button to initiate gfile
.
generic for toolkit dispatch
gfile(text = "", type = c("open", "save", "selectdir"), initial.filename = NULL, initial.dir = getwd(), filter = list(), multi = FALSE, ..., toolkit = guiToolkit()) .gfile(toolkit, text = "", type = c("open", "save", "selectdir"), initial.filename = NULL, initial.dir = getwd(), filter = list(), multi = FALSE, ...) gfilebrowse(text = "Select a file...", type = c("open", "save", "selectdir"), initial.filename = NULL, initial.dir = getwd(), filter = list(), quote = TRUE, handler = NULL, action = NULL, container = NULL, ..., toolkit = guiToolkit()) .gfilebrowse(toolkit, text = "Select a file...", type = c("open", "save", "selectdir"), initial.filename = NULL, initial.dir = getwd(), filter = list(), quote = TRUE, handler = NULL, action = NULL, container = NULL, ...)
text |
initial text |
type |
type of browser: to open a file, to save a file or to select a directory |
initial.filename |
Suggested file name |
initial.dir |
initial directory. If a filename is given, and is not an absolute name, this will be prepended. If filename given initial directory will be taken from that. |
filter |
A filter specifiation. This can be a named character vector of file extensions or something toolkit specific. Here are some examples:
|
multi |
Logical. Allow multiple files to be selected? |
... |
These values are passed to the |
toolkit |
Each widget constructor is passed in the toolkit it
will use. This is typically done using the default, which will
lookup the toolkit through |
quote |
quote output |
handler |
A handler assigned to the default change
signal. Handlers are called when some event triggers a widget to
emit a signal. For each widget some default signal is assumed, and
handlers may be assigned to that through Handlers may also be added via |
action |
User supplied data passed to the handler when it is called |
container |
A parent container. When a widget is created it can be incorporated into the widget heirarchy by passing in a parent container at construction time. (For some toolkits this is not optional, e.g. gWidgets2tcltk or gWidgets2WWW2.) |
returns filename(s) or character(0)
if no selection.
Returns an object of class gFilebrowse
. This should
inherit the methods of gedit
instances.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.