I am having problems on my M2 MacBook Pro when I have Stan files open in the IDE. When having a .stan file open in the IDE everything becomes extremely slow, take a few minutes to save the Stan file, takes minutes to save a .R file, loading files, saving anything. It has become practically unusable. I have tried uninstalling R, uninstalling Rstudio, reinstalling both, tried the most recent versions, tried older versions. I even did an entire clean install of my OS to see if that was a problem. The problem still persists.
I do not seem to have this problem on my older intel based Macs.
Hi, not sure if this will help, but maybe you could try CmdStanR:
CmdStanR (Command Stan R) is a lightweight interface to Stan for R users that provides an alternative to the traditional RStan interface. See the Comparison with RStan section later in this vignette for more details on how the two interfaces differ.