Learn R Programming

DescToolsAddIns (version 1.8)

dir.choose: Choose a Folder Interactively

Description

Choose a directory interactively.

Usage

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

Arguments

default

which directory to show initially.

caption

the caption on the selection dialog

Value

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

See Also

file.choose

Examples

Run this code
# NOT RUN {
dir.choose(getwd(), "Choose a suitable folder")
# }

Run the code above in your browser using DataLab