熔data.table似乎崩溃RStudio?(melting data.table seems t

2019-10-19 03:37发布

有点谷歌搜索和跟踪计算器后,我想我可能已经无意中发现与一个错误reshape2包(或data.table ,我不知道)。 具体地讲,我无法融化特定data.table矿。

这里有一个重复的例子,(你可以找到特定.Rdata的副本文件在这里 ):

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会话中止\星期日遇到一个致命错误\ n该会话被终止”。

如果任何人有任何想法,这是怎么回事,我很乐意听到他们的声音。

谢谢!

编辑:运行这个终端里面,我得到以下错误(段错误):

> 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
文章来源: melting data.table seems to crash RStudio?