Running examples in ‘broom.mixed-Ex.R’ failed
The error most likely occurred in:

> ### Name: brms_tidiers
> ### Title: Tidying methods for a brms model
> ### Aliases: brms_tidiers tidy.brmsfit glance.brmsfit augment.brmsfit
> 
> ### ** Examples
> 
>  ## original model
>  ## Not run: 
> ##D     brms_crossedRE <- brm(mpg ~ wt + (1|cyl) + (1+wt|gear), data = mtcars,
> ##D            iter = 500, chains = 2)
> ##D  
> ## End(Not run)
>  if (.Platform$OS.type!="windows" && require("brms")) {
+    ## too slow on Windows, skip (>5 seconds on r-devel-windows)
+    ## load stored object
+    load(system.file("extdata", "brms_example.rda", package="broom.mixed"))
+ 
+    fit <- brms_crossedRE
+    tidy(fit)
+    tidy(fit, parameters = "^sd_", conf.int = FALSE)
+    tidy(fit, effects = "fixed", conf.method="HPDinterval")
+    tidy(fit, effects = "ran_vals")
+    tidy(fit, effects = "ran_pars", robust = TRUE)
+    # glance method
+    glance(fit)
+    ## this example will give a warning that it should be run with
+    ## reloo=TRUE; however, doing this will fail
+    ## because the \code{fit} object has been stripped down to save space
+    suppressWarnings(glance(fit, looic = TRUE, cores = 1))
+    head(augment(fit))
+ }
Loading required package: brms
Loading required package: Rcpp
Loading 'brms' package (version 2.20.1). Useful instructions
can be found by typing help('brms'). A more detailed introduction
to the package is available through vignette('brms_overview').

Attaching package: ‘brms’

The following object is masked from ‘package:stats’:

    ar

Loading required namespace: rstanarm
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'as.matrix': 'tcrossprod' is not an exported object from 'namespace:Matrix'
Error: Something went wrong (see the error message above). Perhaps you transformed numeric variables to factors or vice versa within the model formula? If yes, please convert your variables beforehand. Or did you use a grouping factor also for a different purpose? If yes, please make sure that its factor levels are correct also in the new data you may have provided.
Execution halted