R Memory “Cannot allocate vector of size N”

北战南征 提交于 2019-12-12 02:49:14

问题


I am trying to run the ExtremeBound package on R and it is crashing when I run it because the memory seems to be too small...

Here is the error message:

Error: cannot allocate vector of size 2.6 Gb
In addition: Warning messages:
1: In colnames(vif.satisfied) <- colnames(include) <- colnames(weight) <- colnames(cdf.mu.generic) <- vars.labels :
  Reached total allocation of 16296Mb: see help(memory.size)
2: In colnames(vif.satisfied) <- colnames(include) <- colnames(weight) <- colnames(cdf.mu.generic) <- vars.labels :
  Reached total allocation of 16296Mb: see help(memory.size)
3: In `colnames<-`(`*tmp*`, value = c("(Intercept)", "US_CPI", "UK_CPI",  :
  Reached total allocation of 16296Mb: see help(memory.size)
4: In `colnames<-`(`*tmp*`, value = c("(Intercept)", "US_CPI", "UK_CPI",  :
  Reached total allocation of 16296Mb: see help(memory.size)
5: In `colnames<-`(`*tmp*`, value = c("(Intercept)", "US_CPI", "UK_CPI",  :
  Reached total allocation of 16296Mb: see help(memory.size)
6: In `colnames<-`(`*tmp*`, value = c("(Intercept)", "US_CPI", "UK_CPI",  :
  Reached total allocation of 16296Mb: see help(memory.size)

I have allocated 800GB of Hardware as RAM (which is 16GB installed) and my Windows 10 Computer is working on an Intel i7.

How can I tell R to use the additional allocated RAM? I looked up other questions but the answers redirect to the use of packages that seem to make the entire matter more complicated.

Also, here is my sessionInfo():

R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:

[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    

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

other attached packages:
[1] ExtremeBounds_0.1.5.1

loaded via a namespace (and not attached):
[1] tools_3.2.2   Formula_1.2-1

Thank you very much!

Sam

来源:https://stackoverflow.com/questions/36407140/r-memory-cannot-allocate-vector-of-size-n

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!