0

so I'm trying to generate a heatmap in R for gene expression analysis... I have 536 GB of memory in C, however when I tried to do a heatmap, it shows this message.

Error: cannot allocate vector of size 11.1 Gb In addition: Warning messages: 1: In distfun(x) : Reached total allocation of 3544Mb: see help(memory.size)

how can i solve this, anyone? im running R in Windows OS, 64bit

user3132936
  • 21
  • 1
  • 4
  • 1
    possible duplicate of [Increasing (or decreasing) the memory available to R processes](http://stackoverflow.com/questions/1395229/increasing-or-decreasing-the-memory-available-to-r-processes) – jeremycg Aug 29 '15 at 14:52

1 Answers1

0

I know that R has a memory limit, as can be seen here, but it looks like you can override that using memory.limit()

RayVelcoro
  • 524
  • 6
  • 21
  • i typed the memory.size() in R and it shows [1] 308.71.. what does that mean?? – user3132936 Aug 29 '15 at 15:10
  • I typed in the wrong command, and edited it shortly after. The result you got is : numeric. If NA report the memory limit, otherwise request a new limit, in Mb. Only values of up to 4095 are allowed on 32-bit R builds, but see ‘Details’. So 308MB. You need to use memory.limit(size=12200). That is 11.1GB + some extra space. I've never used it before, but I believe that should work. You might also want to check out the link that @jeremycg posted in a comment. It is a little more thorough than my explanation. – RayVelcoro Aug 30 '15 at 14:38