dlg_dir.tcltkGUI | R Documentation |
Select an existing directory, or create a new one.
## S3 method for class 'tcltkGUI' dlg_dir(default = getwd(), title = "Choose a directory", ..., gui = .GUI)
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. |
The path to the selected folder.
svDialogs::dlg_dir()
library(svDialogstcltk) # Tcl/Tk dialog boxes are now used by default ## Not run: # A quick default directory changer setwd(dlg_dir(default = getwd())$res) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.