I had a look and can reproduce it. What happens is that macOS Sonoma is
sending dozens of notifications that a window will close (even if no window
is being closed!) and since we move the focus to the next window on close
it happens every time macOS sends that notification and thus many times in
sequence. Unfortunately it is not clear why Sonoma does it and it makes no
sense, so some more digging will be required. I have added a quick hack to
simply not change focus on close - it is not ideal as it doesn't address
the (unknown) cause which may have many more repercussions, but it lets you
try it out (R 4.3.x and arm64 only):
https://mac.R-project.org/test/Mac-GUI-R-4.3-arm64.dmg
Do not use that build on other macOS systems that don't exhibit the bug.
There are still more known issues with Sonoma (e.g., you cannot close an R
document without saving), so avoid upgrading until it stabilizes more. In
the meantime I'll see if I can find out more about the mysterious bugs in
Sonoma.
Cheers,
Simon
On 2/10/2023, at 5:18 AM, William Revelle <lists at revelle.net> wrote:
Dear Mac users of R and developers.
I recently updated to the Sonoma OS for Mac (14.0) and it has a
serious problem for graphics.
plot(1:10) creates a graphic window but I can not switch back to the
console window using either command-1 or the mouse.
Anybody else having this problem? Any suggestions for a patch?
I am running a MacBook Pro with M1 Max.
Bill
(resent because of bad mail address)
William Revelle personality-project.org/revelle.html
Professor personality-project.org
Department of Psychology www.wcas.northwestern.edu/psych/
Northwestern University www.northwestern.edu/
Use R for psychology personality-project.org/r
It is 90 seconds to midnight www.thebulletin.org