RStudio freezing on plot

Running even a simple plot command triggers never-ending stop sign. Only resolution is hitting the stop button several times to abort.

The following freezes the session:

x <- c(1,2,3)
y <- c(1,2,3)

plot(x,y)
> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.2

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.2.1 tools_4.2.1   

Hitting the stop button several times results in:

R is not responding to your request to interrupt processing so to stop the current operation you may need to terminate R entirely.

Terminating R will cause your R session to immediately abort. Active computations will be interrupted and unsaved source file changes and workspace objects will be discarded.

Do you want to terminate R now?

I have tried:

  • Down versioning. Several uninstall/ re-installs.
  • Uninstalling/ re-installing R itself.
  • Updating packages. All are up-to-date.
  • Generating plots in R via the terminal, which works.

Try choosing a different graphics device

Thank you, thank you @andresrcs. Switching the backend to AGG did the trick.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.