choose_dir

0th

Percentile

Choose files interactively

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.

Note

choose_files uses choose.files under Windows and file.choose under other platforms.

Aliases
  • choose_dir
  • choose_files
Examples

if(interactive())
{
  choose_files()
  if(assertive.reflection::is_windows())
  {
    choose_dir()
  }
}

Documentation reproduced from package pathological, version 0.1-1, License: Unlimited

Community examples

Looks like there are no examples yet.