dir.browse {utilitiesR} | R Documentation |
Text-based interactive directory selection.
dir.browse(root = getwd(), multiple = FALSE, title = sprintf("Select a directory"), .select = FALSE)
root |
the root directory to explore (default current working directory) |
multiple |
boolean specifying whether to allow multiple directories to be selected |
title |
what gets printed before the menu. |
.select |
*internal* argument, how the function works out whether you're trying to select a directory or browse it. |
character vector of selected directories.
This could be a bit buggy, due to the fact that it's a little hard to tell whether a user wishes to browse into a directory, or select it.
file.browse
for a similar functionality for
directories.
Other ui: file.browse
,
Filters
, gui.dir.choose
,
gui.file.choose
, gui.menu
,
gui.readline
, gui.yesno
,
tk_entry.dialog
,
tk_select.list
## Not run: d <- dir.browse() ## End(Not run)