shipunov (version 1.5)

Files: Textual file system browser

Description

Textual file system browser

Usage

Files(root=getwd(), multiple=FALSE, hidden=FALSE)

Arguments

root

Root directory

multiple

Allows multiple files to be selected

hidden

Show hidden files?

Value

Returns character vector of selected files, or directory name (useful for 'setwd()'), or new user-defined file name with full path.

Details

Interactive text-based file chooser dialog. Alternatives for Linux: 'tcltk::tk_choose.files()' and 'tcltk::tk_choose.dir()'

See Also

setwd, getwd, dir

Examples

Run this code
# NOT RUN {
## interactive commands
setwd <- Files() # then select directory to work in
Files("~", hidden=TRUE) # explore home directory with hidden files (Linux, macOS)
# }

Run the code above in your browser using DataLab