Learn R Programming

DescToolsAddIns (version 1.11)

dir.choose: Choose a Folder Interactively

Description

Choose a directory interactively.

Usage

dir.choose(default = "", caption = "Select directory")

Value

A length-one character vector, character NA if 'Cancel' was selected.

Arguments

default

which directory to show initially.

caption

the caption on the selection dialog

Author

Andri Signorell <andri@signorell.net>

See Also

Examples

Run this code
if (FALSE) {

dir.choose(getwd(), "Choose a suitable folder")
}

Run the code above in your browser using DataLab