Learn R Programming

svDialogstcltk (version 1.0.0)

dlg_save.tcltkGUI: A Tcl/Tk version of the svDialogs file save dialog box

Description

A Tcl/Tk version of the svDialogs file save dialog box

Usage

# S3 method for tcltkGUI
dlg_save(
  default = "untitled",
  title = "Save file as",
  filters = dlg_filters["All", ],
  ...,
  gui = .GUI
)

Arguments

default

The default file to start with (use /dir/* or /dir/*.* to start in a given directory, but without predefined name).

title

A title to display on top of the dialog box.

filters

A specification of file filters as a nx2 matrix, or a character string with even number of items. First items is the label, second one is the filter. See dlg_filters for examples. This is currently ignored on MacOS, since such kind of filter is defined differently there.

...

Not used yet.

gui

The 'gui' object concerned by this dialog box.

Value

The path to the file to save to.

See Also

svDialogs::dlg_save()

Examples

Run this code
# NOT RUN {
library(svDialogstcltk) # Tcl/Tk dialog boxes are now used by default
# }
# NOT RUN {
# Choose one R filename to save some R script into it
dlg_save(title = "Save R script to", filters = dlg_filters[c("R", "All"), ])$res
# }

Run the code above in your browser using DataLab