经过一段谷歌搜索和跟踪stackoverflow,我想我可能偶然发现了reshape2
包(或data.table
,我不确定)的错误。具体来说,我无法融化我的data.table
。
这是一个可重现的示例(您可以找到该特定.Rdata文件here的副本):
library(data.table)
library(ggplot2)
library(reshape2)
load("mpi_cv_vanilla_random_gov_17h55--100_class_widths.Rdata")
melt(par.grid.results)
在我运行melt
之前,我的usessionInfo
如下:
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] reshape2_1.2.2 ggplot2_0.9.3.1 data.table_1.8.10
loaded via a namespace (and not attached):
[1] colorspace_1.2-4 dichromat_2.0-0 digest_0.6.4 grid_3.0.2
[5] gtable_0.1.2 labeling_0.2 MASS_7.3-29 munsell_0.4.2
[9] plyr_1.8 proto_0.3-10 RColorBrewer_1.0-5 scales_0.2.3
[13] stringr_0.6.2 tools_3.0.2
一旦我运行melt(par.grid.results)
,RStudio就会通过对话抛出炸弹的图片:
“R会话已中止\ nR遇到致命错误\ n会话已终止”。
如果有人对正在发生的事情有任何想法,我很乐意听到。
谢谢!
编辑:在终端内运行,我收到以下错误(segfault):
> melt(par.grid.results)
Using as id variables
*** caught segfault ***
address 0x18, cause 'memory not mapped'
Traceback:
1: unlist(unname(data[var$measure]))
2: melt.data.frame(par.grid.results)
3: melt(par.grid.results)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace