powered by
Use a Windows shell folder widget to choose a folder interactively.
choose.dir(default = "", caption = "Select folder")
which folder to show initially.
the caption on the selection dialog.
A length-one character vector, character NA if ‘Cancel’ was selected.
NA
This brings up the Windows shell folder selection widget. With the default default = "", ‘My Computer’ (or similar) is initially selected.
default = ""
To workaround a bug, on Vista and later only folders under ‘Computer’ are accessible via the widget.
choose.files
if (interactive()) choose.dir(getwd(), "Choose a suitable folder")
Run the code above in your browser using DataLab