4

升级到 R 3.0.X 后,我开始遇到非常频繁的、不可重现的段错误,就像这个提问者发现的那样。 在使用 R 2.XX 之前,我从来没有遇到过这些错误。例如,这是一个长代码块的会话信息,它只是导致了一个错误。但是,在 R 崩溃之后,我再次运行了整个代码块,并且没有错误。

R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

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

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

other attached packages:
 [1] klaR_0.6-8      ggplot2_0.9.3.1 labdsv_1.5-0    MASS_7.3-26     mgcv_1.7-22    
 [6] cluster_1.14.4  sparcl_1.0.3    FD_1.0-11       vegan_2.0-7     permute_0.7-0  
[11] geometry_0.3-3  magic_1.5-4     abind_1.4-0     ape_3.0-8       ade4_1.5-2     
[16] plyr_1.8       

loaded via a namespace (and not attached):
 [1] class_7.3-7        colorspace_1.2-2   dichromat_2.0-0    digest_0.6.3      
 [5] e1071_1.6-1        grid_3.0.1         gtable_0.1.2       labeling_0.1      
 [9] lattice_0.20-15    Matrix_1.0-12      munsell_0.4        nlme_3.1-109      
[13] proto_0.3-10       RColorBrewer_1.0-5 reshape2_1.2.2     scales_0.2.3      
[17] stringr_0.6.2 

有时 R 完全冻结,我必须强制退出,但其他时候,它允许我退出核心转储或保存工作区的选项。

另一个帖子中有人建议设置options(CBoundsCheck=T),这似乎工作了一段时间,但我仍然经常出现故障。

我不认为这些错误与任何特定类型的计算或函数有关,因为前几天我在开始一个新会话并且只设置了我的工作目录和选项后得到了一个。触发故障的代码和系统信息如下所示:

#Set my working directory
setwd("~/Documents/School Spring 2013/Quaternary Dissasembly/Functional Diversity Basefile 3")

#Keep getting segfaults all the time. This might fix it
options(CBoundsCheck=T)



sessionInfo()

R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

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

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

任何人都可以给我的任何帮助来查找和修复错误或我所拥有的不正确设置将不胜感激。谢谢你。

-M

4

0 回答 0