tidymodels / tidyposterior

Bayesian comparisons of models using resampled statistics
https://tidyposterior.tidymodels.org
Other
102 stars 10 forks source link

Failed to load "tidyposterior" due to Error: object ‘posterior_epred’ is not exported by 'namespace:rstanarm' #64

Closed sunhuaiyu closed 1 year ago

sunhuaiyu commented 1 year ago

This is likely due to posterior_epred() being moved to rstantools and not under rstanarm.

> library('tidyposterior') 
Error: package or namespace load failed for ‘tidyposterior’:  object ‘posterior_epred’ is not exported by 'namespace:rstanarm'

> packageVersion('rstanarm')
[1] ‘2.21.3’
> packageVersion('tidyposterior')
[1] ‘1.0.0’
> packageVersion('rstantools')
[1] ‘2.2.0’

> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.6 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
 [1] rstantools_2.2.0   posterior_1.3.1    ggrepel_0.9.2      forcats_0.5.2      kableExtra_1.3.4   rstanarm_2.21.3   
 [7] Rcpp_1.0.9         corrr_0.4.4        yardstick_1.1.0    workflowsets_1.0.0 workflows_1.1.2    tune_1.0.1        
[13] tidyr_1.2.1        tibble_3.1.8       rsample_1.1.1      recipes_1.0.3      purrr_1.0.0        parsnip_1.0.3     
[19] modeldata_1.0.1    infer_1.0.4        ggplot2_3.4.0      dplyr_1.0.10       dials_1.1.0        scales_1.2.1      
[25] broom_1.0.2        tidymodels_1.0.0  

loaded via a namespace (and not attached):
  [1] backports_1.4.1      systemfonts_1.0.4    plyr_1.8.8           igraph_1.3.5         splines_4.1.2        crosstalk_1.2.0     
  [7] listenv_0.9.0        inline_0.3.19        digest_0.6.31        foreach_1.5.2        htmltools_0.5.4      fansi_1.0.3         
 [13] checkmate_2.1.0      memoise_2.0.1        magrittr_2.0.3       globals_0.16.2       gower_1.0.1          RcppParallel_5.1.5  
 [19] matrixStats_0.63.0   svglite_2.1.0        xts_0.12.2           hardhat_1.2.0        timechange_0.1.1     prettyunits_1.1.1   
 [25] colorspace_2.0-3     rvest_1.0.3          xfun_0.36            jsonlite_1.8.4       callr_3.7.3          crayon_1.5.2        
 [31] lme4_1.1-31          survival_3.4-0       zoo_1.8-11           iterators_1.0.14     glue_1.6.2           gtable_0.3.1        
 [37] ipred_0.9-13         webshot_0.5.3        distributional_0.3.1 pkgbuild_1.4.0       rstan_2.21.7         future.apply_1.10.0 
 [43] abind_1.4-5          DBI_1.1.3            miniUI_0.1.1.1       viridisLite_0.4.1    xtable_1.8-4         GPfit_1.0-8         
 [49] stats4_4.1.2         lava_1.7.0           StanHeaders_2.21.0-7 prodlim_2019.11.13   DT_0.26              httr_1.4.4          
 [55] htmlwidgets_1.6.0    threejs_0.3.3        ellipsis_0.3.2       farver_2.1.1         pkgconfig_2.0.3      loo_2.5.1           
 [61] sass_0.4.4           nnet_7.3-18          utf8_1.2.2           labeling_0.4.2       tidyselect_1.2.0     rlang_1.0.6         
 [67] DiceDesign_1.9       reshape2_1.4.4       later_1.3.0          cachem_1.0.6         munsell_0.5.0        tools_4.1.2         
 [73] cli_3.5.0            generics_0.1.3       evaluate_0.19        stringr_1.5.0        fastmap_1.1.0        yaml_2.3.6          
 [79] processx_3.8.0       knitr_1.41           future_1.30.0        nlme_3.1-161         mime_0.12            xml2_1.3.3          
 [85] compiler_4.1.2       bayesplot_1.10.0     shinythemes_1.2.0    rstudioapi_0.14      lhs_1.1.6            bslib_0.4.2         
 [91] stringi_1.7.8        ps_1.7.2             lattice_0.20-45      Matrix_1.5-3         nloptr_2.0.3         markdown_1.4        
 [97] tensorA_0.36.2       conflicted_1.1.0     shinyjs_2.1.0        vctrs_0.5.1          pillar_1.8.1         lifecycle_1.0.3     
[103] furrr_0.3.1          jquerylib_0.1.4      httpuv_1.6.7         R6_2.5.1             bookdown_0.30        promises_1.2.0.1    
[109] renv_0.16.0          gridExtra_2.3        parallelly_1.33.0    codetools_0.2-18     boot_1.3-28.1        colourpicker_1.2.0  
[115] MASS_7.3-58.1        gtools_3.9.4         assertthat_0.2.1     withr_2.5.0          shinystan_2.6.0      parallel_4.1.2      
[121] grid_4.1.2           rpart_4.1.19         timeDate_4021.107    class_7.3-20         minqa_1.2.5          rmarkdown_2.19      
[127] shiny_1.7.4          lubridate_1.9.0      base64enc_0.1-3      dygraphs_1.1.1.6  
sunhuaiyu commented 1 year ago

remove and reinstalled rstamarm@2.21.1

github-actions[bot] commented 1 year ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.