title: Error in RStudioGD(): Shadow graphics device error: r error 4
body: <p>I updated my R to the latest version of 3.4.2, and when I used <code>plot()</code> or <code>ggplot()</code> to draw graphics, RStudio showed the message:</p>
  
  <blockquote>
    <p>Error in RStudioGD() :    Shadow graphics device error: r error 4 (R code execution error)</p>
  </blockquote>
  
  <p>I have tried the methods mentioned before, but it didn't work, and then I came back to the old version of 3.3.2, everything was ok! So I need some help to figure out the problems. My OS is Windows 10.</p>