title: How to solve the problem with memory size in R?
body: <p>I took the below error while trying to create data set in rstudio</p>
  <p><code>Error: cannot allocate vector of size 19.9 Gb</code></p>
  <p>Then I tried to check and change the memory size by using this code:</p>
  <pre><code>&gt; memory.size()
  [1] Inf
  Warning message:
  'memory.size()' is Windows-specific 
  
  &gt; memory.limit()
  [1] Inf
  Warning message:
  'memory.limit()' is Windows-specific 
  </code></pre>
  <p>how I can solve the problem.
  It is worthfully to say that the mentioned approache is also tested in ubuntu that the result was the same.</p>