2

当我加载xlsx后跟时caretR死于segmentation fault.

> library("xlsx")
Loading required package: rJava
Loading required package: xlsxjars
> library(caret)
Loading required package: lattice
Loading required package: ggplot2
Segmentation fault (core dumped)

但是,如果我caret先加载,然后加载xlsx,R 工作正常。

> library(caret)
Loading required package: lattice
Loading required package: ggplot2
> library("xlsx")
Loading required package: rJava
Loading required package: xlsxjars
> 

知道有什么问题吗?

更新:

OS: CentOS 6.9
R:  3.2.5
R configured with: 
./configure --enable-R-shlib CFLAGS=-fPIC --with-cairo --with-libpng --with-jpeglib --with-libtiff --with-system-zlib --with-system-pcre --with-system-xz --with-tcltk

devtools.SessionInfo输出

> sessionInfo()
R version 3.2.5 (2016-04-14)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS release 6.9 (Final)

locale:
 [1] LC_CTYPE=en_US.utf8          LC_NUMERIC=C                
 [3] LC_TIME=en_US.utf8           LC_COLLATE=en_US.utf8       
 [5] LC_MONETARY=en_US.utf8       LC_MESSAGES=en_US.utf8      
 [7] LC_PAPER=en_US.utf8          LC_NAME=en_US.utf8          
 [9] LC_ADDRESS=en_US.utf8        LC_TELEPHONE=en_US.utf8     
[11] LC_MEASUREMENT=en_US.utf8    LC_IDENTIFICATION=en_US.utf8

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

other attached packages:
 [1] randomForest_4.6-12 class_7.3-14        xlsx_0.5.7         
 [4] xlsxjars_0.6.1      rJava_0.9-8         MASS_7.3-47        
 [7] TTR_0.23-1          caret_6.0-76        ggplot2_2.2.0      
[10] lattice_0.20-34     devtools_1.13.2    

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.8        nloptr_1.0.4       plyr_1.8.4             iterators_1.0.8   
 [5] tools_3.2.5        xts_0.10-0         digest_0.6.10      lme4_1.1-12       
 [9] memoise_1.0.0      tibble_1.2         nlme_3.1-128       gtable_0.2.0      
[13] mgcv_1.8-16        Matrix_1.2-7.1     foreach_1.4.3      parallel_3.2.5    
[17] SparseM_1.74       withr_1.0.2        stringr_1.1.0      MatrixModels_0.4-1
[21] stats4_3.2.5       grid_3.2.5         nnet_7.3-12        minqa_1.2.4       
[25] reshape2_1.4.2     car_2.1-3          magrittr_1.5       scales_0.4.1      
[29] codetools_0.2-15   ModelMetrics_1.1.0 splines_3.2.5      assertthat_0.1    
[33] pbkrtest_0.4-6     colorspace_1.3-1   quantreg_5.29      stringi_1.1.2     
[37] lazyeval_0.2.0     munsell_0.4.3      zoo_1.7-13        
4

1 回答 1

0

如果有人遇到这个问题,我可以使用 XLSX 的开发版本修复它。对我来说这是更新到 10.13.5 后的问题

devtools::install_github('dragua/xlsx', ref='7ed97ff')

那个图书馆对我有用。奇怪的是,在许多其他人报告 Ubuntu 问题整整 11 个月后,我现在遇到了这个问题。

于 2018-06-14T08:54:21.590 回答