5

有谁知道如何解决这个错误?我在 macbook pro 中使用 R。我正在使用一个名为 rsgcc 的集群包

thm <- gcc.tsheatmap(b[2:5264,], cpus = 1, cormethod = "GCC", distancemethod = "Raw", clustermethod = "complete")
Dimension information for clustered GE matrix: 5263 9


R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Error: memory exhausted (limit reached?)

我的会话信息是

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

locale:
[1] C/UTF-8/C/C/C/C

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

1 回答 1

9

就像@arun 评论的那样,您需要开始使用 64 位 R 才能充分发挥您拥有的 16 GB RAM 的潜力。现在,R 可以使用大约 3 GB...

于 2013-01-27T18:11:21.337 回答