title: Error when installing the 'graphics' package (but not others) in R
body: <p>I am a starter in R and new to StackOverflow and this is the first time I raise a question, I hope i'm following all the rules...</p>
  
  <p>Anyway. I got R (3.5.0 version) and R-Studio on my laptop with Win 10 Home installed (under the same parent folder 'D:\') and reset the temporary file directory to a folder in D:\ so that the Chinese in C:\Users\中文\documents (which is the default place for tempo files) doesn't affect the connection btw R-studio and R (I was told any relevant directory has to be in English to make R-Studio work). </p>
  
  <p>The problem is, I cannot install the 'graphics' package when I run</p>
  
  <pre><code>install.packages('graphics')
  </code></pre>
  
  <p>The resulting error says something like this:</p>
  
  <pre><code>&gt;Error in install.packages : Updating loaded packages
  &gt;Restarting R session...
  &gt;Error in gzfile(file, "wb") : cannot open the connection
  &gt;Error saving session (options): R code execution error
  &gt;WARNING: Forcing suspend of process in spite of all session data not being fully saved.
  </code></pre>
  
  <p>It's quite weird since the 'graphics' package is pretty basic and as a matter of fact I haven't found anyone reporting such errors on the internet. </p>
  
  <p><strong>It also bothers me that other packages like 'forecast' and 'XML' can be successfully installed without any error report.</strong></p>
  
  <p>I've looked at some similar questions on StackOverflow, having error reports with "<em>Error in gzfile(file, "wb") : cannot open the connection</em>", but they all seem to have something else to complete the sentence. In my case it just stops the error description with "<em>cannot open the connection</em>". Also I couldn't find people having similar problems with "<em>Error saving session (options): R code execution error</em>".</p>
  
  <p>I do realize that this is quite unusual. I can't even find the proper tags other than r for this question. Although it seems that no one has trouble with the 'graphics', this problem is really bothering me and I hope someone can give possible solutions. Thanks a lot.</p>