[R] [External Email] Re: increasing the width of dialog box generated by select.list()

Christopher Ryan cry@n @end|ng |rom b|ngh@mton@edu
Fri Dec 9 20:52:49 CET 2022

Hmm, interesting. My default is to always post in plain text. Methinks
the web interface to our university's gmail might be up to no good;
wouldn't be the first time.  Will have to look into that. Hope this is

At any rate: Windows 10. I use both Rgui and emacs ESS. in both of
those scenarios I'd like the box to open up wide enough be default to
display the entire title; I could put in a couple line breaks if

Currently, in Rgui or Emacs/ESS, with graphics = TRUE or with my
original code, I cannot resize the ensuing dialog box.


--Chris Ryan

On Fri, Dec 9, 2022 at 2:36 PM Bert Gunter <bgunter.4567 using gmail.com> wrote:
> You should use the graphics = TRUE option to make this reproducible. Also, please post in plain text in future, though it made little difference here. HTML can get messed up or stripped on this plain text list.
> What is your OS and version? Windows and Mac are entirely different. How are your running R? -- in an IDE like RStudio or Emacs? --  as a script?  -- in RGui?  Versions of all of these that apply?
> On my Mac Ventura in RStudio 2022.07.2 Build 576 using the latest Xquartz, it seems fine: the title doesn't fit in the box title and is truncated, but it appears beneath it in full in the box, and I can resize the box if I wish to.
> -- Bert
> On Fri, Dec 9, 2022 at 10:44 AM Christopher Ryan via R-help <r-help using r-project.org> wrote:
>> You can see from the code below that the title of the dialog box is too
>> long for the width of the selection box. How might I widen the box?  Thanks.
>> --Chris Ryan
>> chosen.county <- select.list(counties, preselect = NULL, multiple = FALSE,
>> title = "Choose a single county of interest. Only  hospitals found in the
>> HERDS COVID-19 database are shown. This generally means counties containing
>> hospitals.", graphics = getOption("menu.graphics"))
>>         [[alternative HTML version deleted]]
>> ______________________________________________
>> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list