Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suddenly ggplot Crashes R studio, Any suggestions?

Suddenly ggplot began causing errors and froze my base system a reboot gave me the following: "R Session Error", "The previous R session was abnormally terminated due to an unexpected crash"

I am using RStudio Server

In an effort to solve the problem I created a new VM (ubuntu 20.04 on windows 10) upgraded to R studio Version 1.4.1106 I have upgraded to R 4.1 and installed new packages (tidyverse) which is critical to the work but still getting a crash.

Below is a very simple test script that fails with the error noted above As noted this is on a fresh install

TEST Script

library(tidyverse)
data(iris)
ggplot(iris, aes(Sepal.Length, Petal.Length, colour=Species)) +
  geom_point()
like image 614
LHooper Avatar asked May 22 '21 14:05

LHooper


1 Answers

Rstudio has now updated to release 1.4.1717, which solves the ggplot crashing error.

If you must use Rstudio 1.4.1106 and have upgraded to r 4.1. You can resolve the ggplot crash issue by downgrading to R 4.05

However, the optimum solution is to upgrade to Rstudio 1.4.1717

like image 188
LHooper Avatar answered Nov 10 '22 05:11

LHooper