I don't know why suddenly I can't run any codes that will produce graphs in either R or RStudio.
If the codes will not produce graphs, then they work normally. But as long as the codes produce graphs, R just keeps running and it doesn't give me any graphs.
I've tried every methods that I could found online. I've tried dev.off(), graphics.off(), reloaded the whole R, RStudio, XQuartz softwares. But none of these methods fix my problems.
My computer is Mac M1 (ver 12.3), R version 4.2.3 (2023-03-15), R studio version 2023.03.0+386
Btw, I was typing STATA codes into my R markdown files this morning, I'm not sure whether the whole problems arise because of this.
Any helps appreciated!!