I recently updated R to v 4.1.0. Since then RStudio crashes whenever trying to display a plot using the Cairo backend (ie in Tools > Global Options > General > Graphics
). Plots work fine if I change the backend to default or Windows or AGG.
I have tried uninstalling all versions of R, rtools, and RStudio, deleting all packages, and reinstalling, but the issue remains.
I've very confused and the error message doesn't give me much to go on. Any advice would be much appreciated. Thanks.
# causes crash
library(ggplot2)
ggplot(mtcars, aes(mpg, qsec)) +
geom_point()
# Crash message is:
# R Session Aborted
# R Encountered a fatal error
# The session was terminated
> version
_
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 4
minor 1.0
year 2021
month 05
day 18
svn rev 80317
language R
version.string R version 4.1.0 (2021-05-18)
nickname Camp Pontanezen
> capabilities()
jpeg png tiff tcltk X11 aqua http/ftp sockets libxml fifo
TRUE TRUE TRUE TRUE FALSE FALSE TRUE TRUE TRUE TRUE
cledit iconv NLS Rprof profmem cairo ICU long.double libcurl
TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE