title: How to set memory.limit in RStudio on Windows Vista at startup?
body: <p>I am running RStudio 0.92.38 on Windows Vista x64. I have hard time to increase the memory limit to what I have (12GB) by using <code>memory.limit</code>, such as <code>memory.limit(size=12000)</code> for ~ 12 GB. I always get error: </p>
  
  <blockquote>
    <p>memory.limit()
    [1] 3904
    memory.limit(size=12000)
    [1] 3904
    Warning message:
    In memory.size(size) : cannot decrease memory limit: ignored</p>
  </blockquote>
  
  <p>Some related info:</p>
  
  <blockquote>
    <p>version
                   _<br>
    platform       x86_64-pc-mingw32<br>
    arch           x86_64<br>
    os             mingw32<br>
    system         x86_64, mingw32<br>
    status<br>
    major          2<br>
    minor          11.1<br>
    year           2010<br>
    month          05<br>
    day            31<br>
    svn rev        52157<br>
    language       R<br>
    version.string R version 2.11.1 (2010-05-31) </p>
  </blockquote>
  
  <p>When I issued the same <code>memory.limit()</code> from Rgui.exe, I got:</p>
  
  <blockquote>
    <p>memory.limit()
    [1] 12270</p>
  </blockquote>
  
  <p>It seems RStudio is limiting the memory usage.</p>
  
  <p>Any help?</p>
  
  <p>Thanks.
  SP</p>