Brms package does not load

After calling library(brms) I get following

Error: package or namespace load failed for ‘brms’:
object ‘format_glimpse’ is not exported by ‘namespace:pillar’

rstan is working and I have reinstalled the pillar package but keep getting this message. Any help would be much appreciated. Below is my sessioninfo()

R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
system code page: 65001

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

other attached packages:
[1] Rcpp_1.0.7

loaded via a namespace (and not attached):
[1] Brobdingnag_1.2-6 rstan_2.21.3 tidyselect_1.1.0 purrr_0.3.4 lattice_0.20-45 colorspace_2.0-0
[7] vctrs_0.3.4 generics_0.1.0 stats4_4.1.2 loo_2.3.1 rlang_0.4.12 pkgbuild_1.1.0
[13] pillar_1.4.6 glue_1.4.2 distributional_0.3.0 matrixStats_0.61.0 lifecycle_0.2.0 plyr_1.8.6
[19] stringr_1.4.0 munsell_0.5.0 gtable_0.3.0 mvtnorm_1.1-1 codetools_0.2-18 coda_0.19-4
[25] inline_0.3.16 callr_3.7.0 ps_1.4.0 parallel_4.1.2 fansi_0.4.1 bayesplot_1.7.2
[31] backports_1.2.0 scales_1.1.1 checkmate_2.0.0 RcppParallel_5.0.2 StanHeaders_2.21.0-7 abind_1.4-5
[37] farver_2.0.3 gridExtra_2.3 ggplot2_3.3.5 stringi_1.5.3 processx_3.5.2 dplyr_1.0.2
[43] grid_4.1.2 cli_2.1.0 tools_4.1.2 magrittr_1.5 tibble_3.0.4 crayon_1.3.4
[49] pkgconfig_2.0.3 ellipsis_0.3.1 Matrix_1.3-4 prettyunits_1.1.1 ggridges_0.5.2 bridgesampling_1.0-0
[55] assertthat_0.2.1 rstudioapi_0.13 R6_2.5.0 nlme_3.1-153 compiler_4.1.2

Solved by removing and installing following packages: pillar, ellipsis, vctrs.

2 Likes

Thank you for this. This helped me solve a similar problem I had loading the package posterior.

There is a multitude of packages depending on pillar, elipsis, vctrs, so uninstalling these 3 packages will be a major hassle. Is there a different workaround?

BTW I think that part of my problem is that the debian package for brms is way out of date. I’m trying to use install.packages to get the latest brms on R.

1 Like