0

我正在运行一个简单的随机效应贝叶斯元分析brms。后处理的一部分涉及提取 1 个变量 (1 x 10000) 的后验数据帧。如果我尝试使用ggplot 基本图形或基本图形绘制此数据帧(直方图),R 将崩溃。这会通过终端影响 RStudio 和 R。

Process:               R [48291]
Path:                  /Library/Frameworks/R.framework/Resources/bin/exec/R
Identifier:            R
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [48178]
Responsible:           Terminal [47845]
User ID:               501

Date/Time:             2021-10-24 15:44:33.426 +0100
OS Version:            macOS 11.6 (20G165)
Report Version:        12
Anonymous UUID:        98CBF297-C1C9-0C57-7576-A6EFA5FE4DF3

Sleep/Wake UUID:       22A88465-3F12-4416-B832-4550BA8C60FB

Time Awake Since Boot: 30000 seconds
Time Since Wake:       700 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
R(48291,0x1099c8e00) malloc: Non-aligned pointer 0x10d7b3f90 being freed (2)

RsessionInfo()输出为:

R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.6

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

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

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

other attached packages:
 [1] extraDistr_1.9.1 bayesplot_1.8.1  tidybayes_3.0.1  brms_2.16.2      Rcpp_1.0.7       forcats_0.5.1   
 [7] stringr_1.4.0    dplyr_1.0.7      purrr_0.3.4      readr_2.0.2      tidyr_1.1.4      tibble_3.1.5    
[13] ggplot2_3.3.5    tidyverse_1.3.1  esc_0.5.1       

loaded via a namespace (and not attached):
  [1] readxl_1.3.1         backports_1.2.1      plyr_1.8.6           igraph_1.2.7         svUnit_1.0.6        
  [6] splines_4.1.1        crosstalk_1.1.1      TH.data_1.1-0        rstantools_2.1.1     inline_0.3.19       
 [11] digest_0.6.28        htmltools_0.5.2      rsconnect_0.8.24     fansi_0.5.0          magrittr_2.0.1      
 [16] checkmate_2.0.0      tzdb_0.1.2           modelr_0.1.8         RcppParallel_5.1.4   matrixStats_0.61.0  
 [21] vroom_1.5.5          xts_0.12.1           sandwich_3.0-1       prettyunits_1.1.1    colorspace_2.0-2    
 [26] rvest_1.0.2          ggdist_3.0.0         haven_2.4.3          xfun_0.27            callr_3.7.0         
 [31] crayon_1.4.1         jsonlite_1.7.2       lme4_1.1-27.1        survival_3.2-13      zoo_1.8-9           
 [36] glue_1.4.2           gtable_0.3.0         emmeans_1.7.0        V8_3.4.2             distributional_0.2.2
 [41] pkgbuild_1.2.0       rstan_2.21.2         abind_1.4-5          scales_1.1.1         mvtnorm_1.1-3       
 [46] DBI_1.1.1            miniUI_0.1.1.1       xtable_1.8-4         bit_4.0.4            stats4_4.1.1        
 [51] StanHeaders_2.21.0-7 DT_0.19              htmlwidgets_1.5.4    httr_1.4.2           threejs_0.3.3       
 [56] arrayhelpers_1.1-0   posterior_1.1.0      ellipsis_0.3.2       pkgconfig_2.0.3      loo_2.4.1           
 [61] farver_2.1.0         dbplyr_2.1.1         utf8_1.2.2           labeling_0.4.2       tidyselect_1.1.1    
 [66] rlang_0.4.12         reshape2_1.4.4       later_1.3.0          munsell_0.5.0        cellranger_1.1.0    
 [71] tools_4.1.1          cli_3.0.1            generics_0.1.0       broom_0.7.9          ggridges_0.5.3      
 [76] evaluate_0.14        fastmap_1.1.0        yaml_2.2.1           bit64_4.0.5          processx_3.5.2      
 [81] knitr_1.36           fs_1.5.0             nlme_3.1-153         mime_0.12            projpred_2.0.2      
 [86] xml2_1.3.2           compiler_4.1.1       shinythemes_1.2.0    rstudioapi_0.13      curl_4.3.2          
 [91] gamm4_0.2-6          reprex_2.0.1         stringi_1.7.5        ps_1.6.0             Brobdingnag_1.2-6   
 [96] lattice_0.20-45      Matrix_1.3-4         nloptr_1.2.2.2       markdown_1.1         shinyjs_2.0.0       
[101] tensorA_0.36.2       vctrs_0.3.8          pillar_1.6.4         lifecycle_1.0.1      bridgesampling_1.1-2
[106] estimability_1.3     httpuv_1.6.3         R6_2.5.1             promises_1.2.0.1     gridExtra_2.3       
[111] codetools_0.2-18     boot_1.3-28          colourpicker_1.1.1   MASS_7.3-54          gtools_3.9.2        
[116] assertthat_0.2.1     withr_2.4.2          shinystan_2.5.0      multcomp_1.4-17      mgcv_1.8-38         
[121] parallel_4.1.1       hms_1.1.1            grid_4.1.1           coda_0.19-4          minqa_1.2.4         
[126] rmarkdown_2.11       shiny_1.7.1          lubridate_1.8.0      base64enc_0.1-3      dygraphs_1.1.1.6   
4

0 回答 0