gui.dir.choose {utilitiesR} | R Documentation |
This is a cross-platform function to allow the user to
choose a directory interactively. If
graphics=TRUE
, choose.dir
is used on
Windows (file dialog), and tcltk::tk_choose.dir
otherwise (& if supported), and an interactive text
interface if all else fails.
gui.dir.choose(startDir = getwd(), title = "choose a directory", multi = FALSE, graphics = TRUE)
startDir |
start directory (default current directory) |
title |
title for dialog |
multi |
whether to allow selection of multiple items |
graphics |
whether to present a graphics interface (if possible) |
the dir(s) chosen (character vector). If is.empty
is TRUE
, the user selected 'Cancel'.
Other ui: dir.browse
,
file.browse
, Filters
,
gui.file.choose
, gui.menu
,
gui.readline
, gui.yesno
,
tk_entry.dialog
,
tk_select.list