choose_files: Choose files interactively

Description Usage Arguments Value Note Examples

View source: R/choose.R

Description

Choose one or more files or a directory interactively using a pop-up dialog.

Usage

1
2
3
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.

Examples

1
2
3
4
5
6
7
8
if(interactive())
{
  choose_files()
  if(assertive.reflection::is_windows())
  {
    choose_dir()
  }
}

pathological documentation built on May 19, 2017, 11:03 a.m.

Search within the pathological package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.