[Rd] winMenuAdd

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Nov 23 13:50:22 CET 2005


I can see no change in the relevant code since 2.2.0 and the release 
version of 2.2.0 does this for me.

It seems to be a long-standard error in rui.c that only 10 menus are 
allocated but 16 are tested for.

On Wed, 23 Nov 2005, Uwe Ligges wrote:

> Martin Morgan wrote:
>
>> The following
>>
>> winMenuAdd("X")
>> for (i in 1:20) winMenuAdd(paste("X",i, sep="/"))
>>
>> generates an (incorrect) error after adding 12 menu items:
>>
>> Error in winMenuAdd(menuname, NULL, NULL) :
>>         unable to add menu (base menu does not exist)
>>
>> More elaborate examples (e.g., adding menu items to each menu) create
>> other errors (e.g., "Only 16 menus are allowed"), and the original
>> example (at
>> https://stat.ethz.ch/pipermail/bioconductor/2005-November/011010.html)
>> crashes with SIGSEGV in rui.c:1389. I think the basic problem is that
>> there is a hard-coded limit of 16 menus. The limit is reached in
>> Bioconductor, as packages add vignettes.
>>
>> R version 2.2.0, 2005-11-21, i386-pc-mingw32

Please don't use such a misleading description!  You appear to mean
something like

 	Version 2.2.0 Patched (2005-11-21 r36418)


>> attached base packages:
>> [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
>> [7] "base"
>
> This seems to be a bug introduced in R-patched (and R-devel).
>
> R-2.2.0 release correctly reports:
>
> Error in winMenuAdd(menuname, NULL, NULL) :
>         unable to add menu (Only 16 menus are allowed)
>
>
> Uwe Ligges
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list