dlg_open.tcltkGUI | R Documentation |
A Tcl/Tk version of the svDialogs file open dialog box
## S3 method for class 'tcltkGUI' dlg_open( default = "", title = if (multiple) "Select files" else "Select file", multiple = FALSE, filters = dlg_filters["All", ], ..., gui = .GUI )
default |
The default file to start with (use |
title |
A title to display on top of the dialog box. |
multiple |
Is a multiple selection of files allowed? |
filters |
A specification of file filters as a |
... |
Not used yet. |
gui |
The 'gui' object concerned by this dialog box. |
The path to the file to open.
svDialogs::dlg_open()
library(svDialogstcltk) # Tcl/Tk dialog boxes are now used by default ## Not run: # Choose one R file dlg_open(title = "Select one R file", filters = dlg_filters[c("R", "All"), ])$res # Choose several files dlg_open(multiple = TRUE)$res ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.