Skip to content
Prev 8795 / 15075 Next

Create custom menus in R

On 22 Feb 2012, at 14:23, Marcio Pupin Mello wrote:
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.

Any opinions?

Best,
--Hans