[Rd] increase size of the limit of memory (PR#8885)

zhou at stat.columbia.edu zhou at stat.columbia.edu
Sun May 21 03:32:44 CEST 2006


Full_Name: Shouhao Zhou
Version: 2.2.1
OS: windows
Submission from: (NULL) (128.59.110.149)


if you run the following code in R after version 2.1.1:

n.sims<-6000;n<-30000
y<-array(NA,c(n.sims,n))

with output:

Error: cannot allocate vector of size 703125 Kb
In addition: Warning messages:
1: Reached total allocation of 509Mb: see help(memory.size) 
2: Reached total allocation of 509Mb: see help(memory.size) 

then I try to increase the size by command which made sense in R before version
2.0.1 and can help to allocate vector y of size 703125 Kb:

memory.limit(14000000000)

but now we get the output in such away:

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

What can I do now to allocate the vector y<-array(NA,c(6000,30000)) in the
latest version of R?



More information about the R-devel mailing list