Suddenly R is not working properly anymore. Everything that requires some sort of visualization causes R to run infinitely and ultimately to crash. Even the simplest code such as: hist(rnorm(50)) does not provide anything. After a while I get a message: "Terminate R, R is not responding to your request to interrupt processing so to stop the current operation you may need to terminate R entirely".
I use a M1 macbook, installed the most recent version of R (v4.2.1. Apple silicon arm64 build for M1 Macs) and RStudio Desktop (2022.07.1+554). All packages are uptodate. I tried restarting R, reinstalling R and dev.off(). All the other functions work fine.
Does anyone know what to do?