I have a similar problem as recently described here. However, the difference is that R is in the most recent version already.
ggplot2 is executed, RStudio terminates with "R Session Aborted - R encountered a fatal error - The session was terminated". In the terminal, the same works without problems and delivers the desired output (a
ggplot2 and RStudio, but the problem persisted.
Debian GNU/Linux 10 (buster)
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
RStudio Version 1.4.1106
R version 4.1.0 (2021-05-18) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 10 (buster) Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0 locale:  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C  LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8  LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8  LC_PAPER=en_US.UTF-8 LC_NAME=C  LC_ADDRESS=C LC_TELEPHONE=C  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages:  stats graphics grDevices utils datasets methods base other attached packages:  ggplot2_3.3.3 loaded via a namespace (and not attached):  fansi_0.5.0 withr_2.4.2 dplyr_1.0.6 crayon_1.4.1  utf8_1.2.1 grid_4.1.0 R6_2.5.0 lifecycle_1.0.0  gtable_0.3.0 magrittr_2.0.1 scales_1.1.1 pillar_1.6.1  rlang_0.4.11 generics_0.1.0 vctrs_0.3.8 ellipsis_0.3.2  tools_4.1.0 glue_1.4.2 purrr_0.3.4 munsell_0.5.0  yaml_2.2.1 compiler_4.1.0 pkgconfig_2.0.3 colorspace_2.0-1  tidyselect_1.1.1 tibble_3.1.2
Would be great if you would have an idea or could give me a hint where to look next,
Thanks & best,