Cross-platform choose files function

choose_files(
  caption = "Select files",
  default = "",
  multi = TRUE,
  filters = NULL
)

Arguments

caption

Caption for the choose directory dialog

default

Starting directory

multi

Allow multiple files to be selected

filters

A two-column matrix of filename filters, or a two-element vector containing a single filter.

Value

The path to the selected file(s), or NA if the user canceled.