| dlgDir {svDialogs} | R Documentation |
Allows to easily select a directory.
dlgDir(default = getwd(), title, ..., gui = .GUI) ## These should not be called directly ## S3 method for class 'gui' dlgDir(default = getwd(), title, ..., gui = .GUI) ## S3 method for class 'textCLI' dlgDir(default = getwd(), title, ..., gui = .GUI) ## S3 method for class 'nativeGUI' dlgDir(default = getwd(), title, ..., gui = .GUI)
default |
the directory to start with. |
title |
a title to display on top of the dialog box. |
... |
pass further arguments to methods. |
gui |
the 'gui' object concerned by this dialog box. |
The modified 'gui' object is returned invisibly. The choosen directory, or an
empty string if the cancel button was clicked is found in gui$res (see
example).
Philippe Grosjean (phgrosjean@sciviews.org)
### A quick default directory changer setwd(dlgDir(default = getwd())$res)