If RStudio crashs, please use 'Software Rendering'.
  Within Tools -> Global Options... -> General -> Advanced
Select 'Software' among Rendering engine in OS Integration,
 and restart RStudio.

In detail, please see
  https://support.rstudio.com/hc/en-us/articles/360017886674-Troubleshooting-RStudio-Rendering-Errors
