R: Choose a list of files interactively using tcltk
tkchoose.files
R Documentation
Choose a list of files interactively using tcltk
Description
Provides the same functionality as choose.files from
utils package for Windows, but relies on tcltk package
and therefore is system independent provided tcltk is
installed.
Usage
tkchoose.files(default = "", caption = "Select files",
multi = TRUE, filters = getDefaultFilters(),
index = nrow(filters))
Arguments
default
Which filename to show initially
caption
The caption on the file selection dialog
multi
Whether to allow multiple files to be
selected
filters
A matrix of filename filters. If NULL, all
files are shown. Default is filters=getDefaultFilters().
index
Which row of filters to use by default.
Value
A character vector giving zero or more file paths. If
user cancels operation, character(0) is returned.
Note
tkchoose.files() is called internally by rchoose.files()
if it's appropriate for a given platform/graphics
combination. Calling tkchoose.files() directly forces the
package to use tcl tk based dialog regardless of system
capabilities and therefore may fail. Use the direct call
to tkchoose.files() only if it seems beneficial to bypass
the rchoose.files() decision logic.