dir.browse {utilitiesR}R Documentation

Text-based interactive directory selection.

Description

Text-based interactive directory selection.

Usage

  dir.browse(root = getwd(), multiple = FALSE,
    title = sprintf("Select a directory"), .select = FALSE)

Arguments

root

the root directory to explore (default current working directory)

multiple

boolean specifying whether to allow multiple directories to be selected

title

what gets printed before the menu.

.select

*internal* argument, how the function works out whether you're trying to select a directory or browse it.

Value

character vector of selected directories.

Note

This could be a bit buggy, due to the fact that it's a little hard to tell whether a user wishes to browse into a directory, or select it.

See Also

file.browse for a similar functionality for directories.

Other ui: file.browse, Filters, gui.dir.choose, gui.file.choose, gui.menu, gui.readline, gui.yesno, tk_entry.dialog, tk_select.list

Examples

## Not run: 
d <- dir.browse()

## End(Not run)

[Package utilitiesR version 1.8.4 Index]