Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

svDialogs-package

svDialogs: SciViews - Standard Dialog Boxes for Windows, MacOS and Linuxes


Description

Quickly construct standard dialog boxes for your GUI, including message boxes, input boxes, list, file or directory selection, ... In case R cannot display GUI dialog boxes, a simpler command line version of these interactive elements is also provided as fallback solution.

Details

The dialog box function dispatch to specific dialog boxes depending on the OS and whether a GUI can be displayed or not.

Important functions

  • dlg_message() display a message box,

  • dlg_input() prompt for textual input,

  • dlg_list() select one or more items in a list,

  • dlg_open() open one or more existing file(s),

  • dlg_save() prompt for a file to save to (and ask confirmation if the file already exists),

  • dlg_dir() select a directory,

  • dlg_form() display a complex dialog box with textual areas, password, checkboxes, comboboxes, font and size, color, etc.

Note

Under Linux, you should install 'yad' (preferably), or 'zenity'. If you use 'zenity', you cannot build more complex dlg_form() dialog boxes, and some versions trigger a warning like: "Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged." You do not get these inconveniences if you use 'yad' (default choice in case both programs are installed simultaneously).

Author(s)

Maintainer: Philippe Grosjean phgrosjean@sciviews.org (ORCID)

Other contributors:

See Also

Useful links:


svDialogs

SciViews - Standard Dialog Boxes for Windows, MacOS and Linuxes

v1.0.3
GPL-2
Authors
Philippe Grosjean [aut, cre] (<https://orcid.org/0000-0002-2694-9471>), Paul Hibbins [ctb]
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.