Description Usage Arguments Details Value
View source: R/directoryInput.R
Choose a Folder Interactively
Display an OS-native folder selection dialog under Mac OS X, Linux GTK+ or Windows.
1 | choose.dir(default = NA, caption = NA, useNew = TRUE)
|
default |
which folder to show initially |
caption |
the caption on the selection dialog |
useNew |
boolean, selects the type of dialog shown in windows |
Uses an Apple Script, Zenity or Windows Batch script to display an OS-native folder selection dialog.
For Apple Script, with default = NA
, the initial folder selection
is determined by default behavior of the "choose folder" script. Otherwise,
paths are expanded with path.expand
.
For Linux, with default = NA
, the initial folder selection is
determined by defaul behavior of the zenity script.
The new windows batch script allows both initial folder and caption to be set. In the old batch script for Windows the initial folder is always ignored.
A length one character vector, character NA if 'Cancel' was selected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.