Skip to content

tcltk causes help() to hang in R 4.2.0 on macOS

2 messages · Tomas Kalibera, John Fox

#
For reference, this problem is not macOS specific, it also exists on 
Linux (but not on Windows which use a different code path) and the core 
problem is how to prevent re-entrant execution of R event handlers when 
run from the R/tcltk event loop, itself running from an R event handler.

R-patched now contains a defensive work-around from Simon.

We have added a more efficient and cleaner fix to R-devel, but there is 
some risk of breakage: this form is "the documented way" but didn't work 
on some systems ~22 years ago. So it would be great if people using 
Tcl/Tk in R on Unix, and particularly those with rarely used window 
managers, could test their applications or the tcltk package demos and 
report any issues well before the next release.

Thanks
Tomas
On 5/30/22 01:27, John Fox wrote:
#
Dear Thomas,

Thanks for this additional information.

I added some of my own defensive code to the development version of the 
Rcmdr package, to set the "help_type" option to "text" for macOS. I'll 
modify that to all non-Windows platforms, and also include this in the 
CRAN version of the package.

I currently test on macOS and Windows systems but when I have a chance 
will get a Linux system working as well.

Best,
  John
On 2022-06-08 12:16 p.m., Tomas Kalibera wrote: