Learn R Programming

svDialogstcltk (version 1.0.1)

dlg_dir.tcltkGUI: A Tcl/Tk version of the {svDialogs} directory selection dialog box

Description

Select an existing directory, or create a new one.

Usage

# S3 method for tcltkGUI
dlg_dir(default = getwd(), title = "Choose a directory", ..., gui = .GUI)

Value

The path to the selected folder.

Arguments

default

The path to the default directory that is proposed (e.g., current working directory).

title

A title to display on top of the dialog box.

...

Not used yet.

gui

The 'gui' object concerned by this dialog box.

See Also

svDialogs::dlg_dir()

Examples

Run this code
library(svDialogstcltk) # Tcl/Tk dialog boxes are now used by default
if (FALSE) {
# A quick default directory changer
setwd(dlg_dir(default = getwd())$res)
}

Run the code above in your browser using DataLab