[R-SIG-Mac] Create custom menus in R
bibiko at eva.mpg.de
Wed Feb 29 13:07:47 CET 2012
On 22 Feb 2012, at 14:23, Marcio Pupin Mello wrote:
> does anyone know whether there is a similar function for Mac? I mean... is there an winMenuAdd funtion for R users on Mac?
> Thanks in advance,
As far as I know no. But to implement such a feature is quite easy. The only thing I'm concerning about is the naming issue.
For Windows OS there're commands like 'winMenuAdd' etc. i.e. prefixed by 'win'. One could implement this for Mac by using names like 'macMenuAdd' etc. but I think it'd better due to platform independent R scripts to have commands like 'menuAdd' which then dispatches on basis of the running OS and R version the command to 'win...' or 'mac...' or simply ignore it if OS doesn't support such stuff.
The other way would be to adopt the names like 'winMenuAdd' and write a wrapper for R.app for such commands.
> On 12/14/09 10:15 AM, Philippe Bouchet wrote:
>> On 14/12/2009, at 1:06 PM, Duncan Murdoch wrote:
>>> Philippe Bouchet wrote:
>>>> Dear list members,
>>>> Does anyone know how to add items to the menu bar in R ?
>>>> [...] Any help or suggestions greatly appreciated !
>>> It depends on the front-end. In Windows Rgui, look at ?winMenuAdd.
>> Fantastic ! That is exactly what I was looking for. Thanks a lot for your input !
More information about the R-SIG-Mac