tk_choose.dir {tcltk} | R Documentation |
Use a Tk widget to choose a directory interactively.
tk_choose.dir(default = "", caption = "Select directory")
default |
which directory to show initially. |
caption |
the caption on the selection dialog. |
A length-one character vector, character NA
if
‘Cancel’ was selected.
if (interactive()) tk_choose.dir(getwd(), "Choose a suitable folder")