r_user_7411
r_user_7411

Reputation: 1

GGPLOT is not loading anymore and crashed R Studio

R studio was running fine until last week, when suddenly plots are not loading anymore, and R studio crashes when I try to compute a simple plot. I up- and downgraded the R version and re installed R studio. Does anyone know a solution? Thanks a lot!

Upvotes: 0

Views: 270

Answers (1)

Ben Bolker
Ben Bolker

Reputation: 226587

Based on comments above:

  • given that this is a fresh R install and X11() and pdf() both work OK, there must be something wrong with your Quartz/XQuartz installation. Besides re-installing, I don't know what to suggest ...
  • As a workaround, you can use an X11 graphics device almost everywhere you would use a native Quartz graphics device. I don't think it's possible to tell RStudio to use X11 instead of Quartz (you could ask on an RStudio forum, or maybe someone else will have advice here), but you can start every RStudio session by opening a fresh X11 window (X11()), which R will then use for graphics instead of the built-in RStudio/quartz pane.

Not a perfect solution but maybe good enough to let you get some work done for now ... ?

Upvotes: 0

Related Questions