selectFile: Select a file

View source: R/selectFile.R

selectFileR Documentation

Select a file

Description

Function allows the user to select a file using a gui interface.

Usage

selectFile(
  ext = "*",
  caption = paste("Select .", ext, " file(s) to import", sep = ""),
  multi = FALSE
)

Arguments

ext
  • extension for files to choose from

caption
  • caption for file dialog (if file name not provided)

multi
  • flag (T/F) to allow multiple file selection

Details

Uses tcltk::tk_choose.files to select file(s).

Value

Selected file name(s). Returns NULL if the user canceled selection using the file dialog.


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.