Description Usage Arguments Value Note Examples
Choose one or more files or a directory interactively using a pop-up dialog.
1 2 3 | choose_dir(default = "", sep = c("/", "\\"))
choose_files(default = "", multi = FALSE, sep = c("/", "\\"))
|
default |
The default file to be selected. See the Details section of
|
sep |
String separator between directory levels in the output. |
multi |
Logical value indicating if multiple files can be selected. Only on Windows. |
A character vector of standardized file paths that were chosen.
choose_files
uses choose.files
under Windows
and file.choose
under other platforms.
1 2 3 4 5 6 7 8 | if(interactive())
{
choose_files()
if(assertive.reflection::is_windows())
{
choose_dir()
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.