Re: [Rd] RFC: allow packages to advertise vignettes on Windows

From: Thomas Friedrichsmeier <thomas.friedrichsmeier_at_ruhr-uni-bochum.de>
Date: Tue, 15 May 2007 12:52:27 +0200

On Tuesday 15 May 2007, Duncan Murdoch wrote:
> I'm interested in making vignettes more visible.  Putting them on the
> menu is not the only way, but since you're offering to do the work, I
> think it's a good idea :-).

[...]

> - Should they appear in a top level Vignettes menu, or as a submenu of
> the Help menu?
>
> I'd lean towards keeping the top level placement, since you've already
> got an audience who are used to that.

I'd vote to try to leave this up to the GUI as much as possible. For example, in RKWard, I'd probably not want to create a top level "Vignettes" menu, as there is already a considerable number of top level menus present. Also, I'd like to add it to the context menu of the respective package environment item in our object browser. Further, I would not want to launch a pdf-viewer as a separate application, but rather display this info in an MDI-managed window.

So it looks like there is a number of decisions involved, which probably can't be answered uniformly across all GUIs (and plaforms!).

What I'd suggest is to make it easy for GUIs to override the default behavior, if they want to. For instance, from addVigs2Menu(), you could call a function like

        registerVignette(packagename, title, filename) the default implementation of this function might well be just as you suggest (and empty on linux/when there is no GUI), but this way it would be easy for GUIs to override the behavior. Also, all platform specific code would be contained inside registerVignette(), only.

Regards
Thomas Friedrichsmeier



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 15 May 2007 - 10:51:58 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 May 2007 - 11:33:43 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.