This problem has been reported before, for example in 2021 here:
I have two Macs, one with M1max and M1pro CPU. The problem exists on both and on macOS Monterey and Ventura. The linked report above is for Big Sur. I searched the GitHub issues and could not find a bug report but it feels like one. I'm using RStudio Version 2023.09.1+494 and R version 4.2.1 (2022-06-23) -- "Funny-Looking Kid".
If I execute something in RStudio console, the first command is properly executed and I see results. But 2 seconds later the macOS ActivityMonitor shows a process named rsession-arm64
which maxes out 1 core for 5+ minutes. If you start another command in the console, it will not be executed until the previous process stops maxing out the core. During this time the console appears unresponsive.
If I open an interactive R session in my terminal application there is no problem at all. Similar to the report linked above. And the process which executes the command/script is named R
.
Is this a local config problem or should I file a bug report?