choose_dir: Choose files interactively
Description
Choose one or more files or a directory interactively using a pop-up dialog.Usage
choose_dir(default = "", sep = c("/", "\\"))
choose_files(default = "", multi = FALSE, sep = c("/", "\\"))Arguments
default
The default file to be selected. See the Details section of
choose.files for how to specify. Only on Windows.
sep
String separator between directory levels in the output.
multi
Logical value indicating if multiple files can be selected.
Only on Windows.
Value
- A character vector of standardized file paths that were chosen.
Examples
Run this codeif(interactive())
{
choose_files()
if(assertive.reflection::is_windows())
{
choose_dir()
}
}
Run the code above in your browser using DataLab