2

I am trying to access more memory using code I found in stackoverflow (Increasing (or decreasing) the memory available to R processes). However, I get the following error which I haven't been able to resolve:

memory.limit(10000)

Error in memory.limit(10000) : 
don't be silly!: your machine has a 4Gb address limit

R is telling me that I have a 4gb address limit (despite the fact that I'm on a 64bit OS with 16gb of RAM). Anyone know how to get around this?

Windows OS: Windows 7 Enterprise, Intel(R) Core(TM) i7-2600 CPY @3.40GHz

Installed Memory (RAM): 16.0GB

System type: 64 bit OS

R Version: 3.0.0 RStudio Version: 0.97.551

Community
  • 1
  • 1
Gary Lo
  • 21
  • 1
  • 2

1 Answers1

1

I never used R, but with a quick search I came across memory.limit()documentation (here)

I quote :

memory.limit(size = NA) size : numeric. If NA report the memory size, otherwise request a new limit, in Mb.

10.000 MB = 10 GB, hence the error.

About the 64-bit problem, it may come from R itself (depending on the virtual machine version I guess).

Rerito
  • 5,886
  • 21
  • 47
  • 1
    My system has 16.0 GB (in excess of the 10GB I attempted to allocate) so I'm not sure why I'm getting the error. – Gary Lo Sep 20 '14 at 14:45
  • 4
    @GaryLo if you are using a 32-bit version of R, you won't be able to address more than 4GB. Check it out. – Rerito Sep 20 '14 at 18:21