choose.dir: Choose a Folder Interactively on MS Windows

Description Usage Arguments Details Value Source See Also Examples

View source: R/misc.R

Description

Aangepaste functie om ook gebruik om macOS mogelijk te maken.

Usage

1
choose.dir(default = "", caption = "Select folder")

Arguments

default

which folder to show initially.

caption

the caption on the selection dialog.

Details

This brings up the Windows shell folder selection widget. With the default default = "", ‘My Computer’ (or similar) is initially selected.

To workaround a bug, on Vista and later only folders under ‘Computer’ are accessible via the widget.

Value

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

Source

http://grokbase.com/t/r/r-sig-mac/12bxhv5xcz/equivalent-of-choose-dir

See Also

choose.files (on Windows) and file.choose (on all platforms).

Examples

1
2
if (interactive() && .Platform$OS.type == "windows")
        choose.dir(getwd(), "Choose a suitable folder")

msberends/certedata documentation built on Nov. 26, 2019, 5:19 a.m.