dlg_dir | R Documentation |
Select an existing directory, or create a new one.
dlg_dir(default = getwd(), title = "Choose a directory", ..., gui = .GUI) dlgDir(default = getwd(), title = "Choose a directory", ..., gui = .GUI) ## S3 method for class 'gui' dlg_dir(default = getwd(), title, ..., gui = .GUI) ## S3 method for class 'textCLI' dlg_dir(default = getwd(), title, ..., gui = .GUI) ## S3 method for class 'nativeGUI' dlg_dir( default = getwd(), title, rstudio = getOption("svDialogs.rstudio", TRUE), ..., 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. |
... |
Pass further arguments to methods. |
gui |
The 'gui' object concerned by this dialog box. |
rstudio |
Logical. Should 'RStudio' dialog boxes automatically be used
if available? If |
The modified 'gui' object is returned invisibly. Use its gui$res
component to get the returned directory (the string is empty when the user
cancelled the dialog box, see example).
dlg_open()
, dlg_save()
## 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.