how I can increase the usable memory in R?
Hello,
Is there a way to increase the usable memory into R by using virtual memory of the hard disk? Because many R packages can't allocate a matrix with more than 20000 columns and 100 row and always the same error
res_aracne <- build.mim(tmycounts,estimator = "spearman")
Error: cannot allocate vector of size 3.4 Gb
In addition: Warning messages:
1: In `diag<-`(`*tmp*`, value = 0) :
Reached total allocation of 8088Mb: see help(memory.size)
2: In `diag<-`(`*tmp*`, value = 0) :
Reached total allocation of 8088Mb: see help(memory.size)
3: In `diag<-`(`*tmp*`, value = 0) :
Reached total allocation of 8088Mb: see help(memory.size)
4: In `diag<-`(`*tmp*`, value = 0) :
Reached total allocation of 8088Mb: see help(memory.size)
> memory.size()
[1] 3967.84
> memory.size(max = TRUE)
[1] 4865.25
Thank you
• 21,792 views
•
link
1 answer
Log in to answer this question.
You should read the error messages, really, really, really :P
see
help(memory.size)so you type
help(memory.size)and get a page that tells you also how to query and setmemory.limitHello Fereshteh!
We believe that this post does not fit the main topic of this site.
Btw, this is not a bioinformatics question
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!
This time I don't agree with this thread being closed. R is used by many bioinformaticians that have to face limits in their available memory
I am very much interested in how can I solve this problem the day I am running a RNA-Seq or microarray analysis, and I cannot do it because I run out of resources