- Made compatible with Positron as much as possible (many RStudio dialog boxes are NOT implemented in Positron, resulting in a fallback to the console text version).
- Updated CITATION file to the new format.
-
dlg_filters()now propose more file types. -
The methods associated with the
dlg_xxx()functions are now alsodlg_xxx(). Previously, they weredlgXxxx(), for instance,dlg_dir(), versusdlgDir(). This change homogenizes the methods by using snake_case everywhere. It should not impact code and packages that use these dialog boxes, sincedlgDir()remains a valid name for the same dialog box asdlg_dir().
- The
filters=argument should be correctly handled now indlg_open()&dlg_save()(bug corrected).
- For unix menu items, we now use
xvkbd -text 'cmd\n'instead ofxvkbd -xsendevent -text 'cmd\n', because the-xsendeventis ignored by many recent apps. Also,\nand\tare now supported inside menu commands.
-
Argument
rstudio=to allow by-pass RStudio dialog boxes in native version when RStudio Desktop is used (thanks to Paul Hibbins). -
In the case of 'RStudio Desktop', a Tk version of the list selection dialog box is used by default.
-
For
dlg_open(multiple = TRUE)an OS-native dialog box is used instead of the 'RStudio' version that is limited to one file only in 'RStudio Desktop'. For 'RStudio Server' we have not found a solution yet. So, a warning indicates that only one file can be selected there for the moment.
-
Moved to a GitHub repository.
-
Snake_case versions of the function names (but camelCase name kept for backward compatibility.
-
Documentation moved to Roxygen2, tests to testhat (bot no tests yet) and a vignette with knitr are added.
-
A bug that imposed to load svDialogs on the search path for some dialog boxes to be displayed under Windows should be solved.
-
RStudio version for many dialog boxes: dir, open (but no multiple selections), save, input & message. List dialog box is handled correctly under RStudio, although a text version at the R console is used instead (no GUI dialog yet.)
-
In case both 'zenity' and 'yad' are available under Linux, 'yad' is used in priority for all dialog boxes (and it is the only alternative for dlg_form()).
-
menuAdd()and similar functions now build a more robust code under Unix/Linux for using thectxmenuprogram. It now usesxvkbd -xsendevent -textcommand instead of justxvkbd -textthat made problem on non-US keymap sometimes. -
Entries in the default menu are made more robust:
Load package...andInstall packages...instructions are simplified, andR project home pageandCRAN home pagenow usebrowseURL()instead of relying on Firefox. -
Added a
Fix()function in the temporary environment that just duplicatefix()in case it does not already exists. The menu entry for data edition uses it.
dlgInput()returned a strange result in Mac OS X El Capitan, due to different string formatting of the underlying Mac code.
- Added requirements for Linux (
zenity) in theDESCRIPTIONfile.
- The native Mac dialogs did not work any more, solved for 10.5 Leopard and above by querying the name of the application by its id (Rgui).
- Rework of
AuthorandAuthors@Rfields in theDESCRIPTIONfile.
-
Dependencies to {tcltk} and {svMisc} are eliminated. Consequently, all functions that depend on Tcl/Tk are eliminated too. It concerns
guiDlg(),guiDlgFunction()and other associated methods or functions. The newdlgForm()function should be used instead. -
Temporary objects are now saved in
SciViews:TempEnvinstead ofTempEnv.
-
Added support for
JGRin dialog boxes under Mac OS X. -
The
menuXXX()functions can manage menus and submenus inJGR.
-
menuXXX()functions do not generate files in\tmpdir on Linux, unless ininteractive()session, and with explicit user's acknowledgement. Moreover, the user name is not used anymore as part of the name of the temporary menu files generated (cf CRAN policies and following B. Ripley's request). -
Code to manage
menuXXX()items on Mac OS X is considered still experimental (on R-forge, not CRAN) and is now commented out. Will be further developed in a future version of the {svDialogs} package.
NEWSfile reworked to use the new Rd format.
- Slight changes in flexible dialog functions according to notes generated by R CMD check (2.15.0), i.e., partial matching of argument env(ir) and use of
.Internalineval.with.vis(); replaced by the actual functionwithVisible().
- Added
dlgForm()for flexible form dialog box. Only the Linux implementation usingyadand the textual version are currently implemented.
-
Argument message is changed to title in
dlgDir()function, to match corresponding argument indlgOpen()anddlgSave()and also to indicate it can only be a single line of text! -
Added
msgBox()andokCancelBox()function for simpler message box handling. -
dlgOpen()is now implemented and itstextCLIversion also accepts single and double quotes around file path (allow to drag&drop from, e.g., nautilus to gnome-terminal in Gnome Linux), on the contrary tofile.choose(). -
dlgFiltersis similar to Filters matrix under Windows, and it provides a series of default file types and filters fordlgOpen()anddlgSave(). -
dlgSave()is also implemented, but it useschoose.files()on Windows, which is merely designed to open file(s) instead of providing a file name to save to.
-
Now,
menuAddItem()implements'enable'and'disable'in action to change the state of an existing menu item. -
On Windows, using an action as
'enable'or'disable'on nonexisting menus just does nothing (on the contrary to the originalwinMenuAddItem()which creates that menus with the action being'enable'd or'disable'd, respectively). -
'$ConsoleMain/<menu>'is now accepted as a synonym of'<menu>'in allmenuXXX()functions, according to correspondingwinMenuXXX()functions. -
The
menuXXX()functions now check for bad syntax with the special menus$ConsoleMain,$ConsolePopup,$Graph<n>Mainand$Graph<n>Popup:special menu not followed by at least one submenu. -
The console context menu is now implemented too, and
'$ConsolePopup/<menu>'menus allow for adding submenus to it. -
Addition of
menuNames()andmenuItems(), working the same way aswinMenuNames()andwinMenuItems()under Windows.
- The functions to handle menus in Linux are completely rewritten to use a menu configuration file that a modified version of
myGtkMenu(namedctxmenu) can read and interpret to display the corresponding menus.
- Similar custom menus as
winMenuXXX()functions are added and allow to add custom menus on the Mac (bothR.appandterminal) and for R run on a Gnome desktop, providing the system is configured to manage such menus, see?menuAdd.
-
The
guiDlgXXX()functions are reworked into S3 methods and their interface changes. To avoid any confusion, they are renameddlgXXX(). -
dlgMessage()is reworked into native dialog box, but it looses a couple of options during the process (title, icon, parent). The previous code is now moved to {svDialogstcltk}. -
dlgInput()is reworked the same way, and it looses theparent=argument that was not implemented yet, anyway, and thetitle=argument that is now always"question"in order to matchwinDialogString()function on Windows. -
dlgList()is also refactored that way. Its interface is completely changed to better match the arguments ofselect.list()and to make it a direct replacement for that function. -
dlgDir()is completely rewritten, as well as,dlgOpen()anddlgSave().
- {tcltk} R package is moved from
dependstoimports.
guiDlgFun()is adapted to the new help system provided in R 2.10.
- When the path contained spaces,
guiDlgOpen()andguiDlgSave()returned them in pieces.
- This is the first version distributed on R-forge. It is completely refactored from older versions (on CRAN since 2003) to make it run with SciViews-K and Komodo Edit (SciViews-R Console not supported any more).