3

I can't load a RData file, I get the following error message

> load("GPL570_matrix.Rdata")
Error: cannot allocate vector of size 8.9 Gb
In addition: Warning messages:
1: Reached total allocation of 5941Mb: see help(memory.size) 
2: Reached total allocation of 5941Mb: see help(memory.size) 
3: Reached total allocation of 5941Mb: see help(memory.size) 
4: Reached total allocation of 5941Mb: see help(memory.size)

I tried to increase the memory limit using

memory.limit(size=11264)

But R ends up crashing. Here's my session info

> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_2.14.2

Thanks in advance.

  • 3
    How big is the file? How many bytes exactly? Did you create it or did you get it from somewhere else? Maybe you just don't have enough memory on your computer to read it? When you say 'R ends up crashing', is that after setting the memory limit *and* trying to read the file? All I got is questions, all you want is an answer... – Spacedman Nov 19 '12 at 08:16
  • 3
    In addition, how much RAM do you have? – Paul Hiemstra Nov 19 '12 at 09:06
  • I got it from someone else, it's a matrix with gene expression data (~10,000 genes and ~57,000 samples). I have an Intel Core i5 with 6 GB in RAM. – user1835053 Nov 19 '12 at 21:52
  • Well, there's your problem. No way is that computer reading that dataset. – gregmacfarlane Aug 13 '14 at 16:23
  • I'm having a similar issue. My session is aborted before I can see any other error message, actually. I'm trying to load a RData file with 63mb. I also run an Intel Core i5 @ 3.40GHz and 8GB RAM. Is it not enough? – Luiz Felipe Freitas Apr 25 '16 at 22:13
  • Load is not loading, please change the tag load to loading. – Mirko Ebert May 23 '17 at 18:58
  • Did you try using SparkR loadDF function? – Charles Santana Apr 04 '19 at 23:31

0 Answers0