Description Usage Arguments Details Value Source
View source: R/utils_fileBrowserDialog.R
Interactive folder selection using a native dialogue
1 2 3 4 5 6 | fileBrowser(
default = NULL,
caption = NULL,
multiple = FALSE,
directory = FALSE
)
|
default |
Character: path to initial folder |
caption |
Character: caption on the selection dialogue |
multiple |
Boolean: allow to select multiple files? |
directory |
Boolean: allow to select directories instead of files? |
Platform-dependent implementation:
Windows: calls the utils::choose.files
R function.
macOS: uses AppleScript to display a folder selection
dialogue. If default = NA
, folder selection fallbacks to the
default behaviour of the choose folder
AppleScript command.
Otherwise, paths are expanded with path.expand()
.
Linux: calls the zenity
system command.
A length one character vector, character NA if 'Cancel' was selected
https://github.com/wleepang/shiny-directory-input
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.