R: Choose a Folder Interactively

dir.choose {DescTools} | R Documentation

## 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.

### Author(s)

Andri Signorell <andri@signorell.net>

### See Also

`file.choose`

### Examples

    ## Not run:

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

    ## End(Not run)

[Package DescTools version 0.99.28 Index]