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

> ### Name: hdi
> ### Title: Compute high density intervals (HDI) for MCMC samples
> ### Aliases: hdi rope
> 
> ### ** Examples
> 
> if (require("rstanarm")) {
+   fit <- stan_glm(mpg ~ wt + am, data = mtcars, chains = 1)
+   hdi(fit)
+ 
+   # fit logistic regression model
+   fit <- stan_glm(
+     vs ~ wt + am,
+     data = mtcars,
+     family = binomial("logit"),
+     chains = 1
+   )
+   # compute hdi, transform on "odds ratio scale"
+   hdi(fit, trans = exp)
+ 
+   # compute rope, on scale of linear predictor. finds proportion
+   # of posterior distribution values between -1 and 1.
+   rope(fit, rope = c(-1, 1))
+ 
+   # compute rope, boundaries as "odds ratios". finds proportion of
+   # posterior distribution values, which - after being exponentiated -
+   # are between .8 and 1.25 (about -.22 and .22 on linear scale)
+   rope(fit, rope = c(.8, 1.25), trans = exp)
+ }
Loading required package: rstanarm
Loading required package: Rcpp
rstanarm (Version 2.15.2, packaged: 2017-04-19 09:04:44 UTC)
- Do not expect the default priors to remain the same in future rstanarm versions.
Thus, R scripts should specify priors explicitly, even if they are just the defaults.
- For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores())

Attaching package: ‘rstanarm’

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

    se

Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) : 
  c++ exception (unknown reason)
trying deprecated constructor; please alert package maintainer

SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).

Gradient evaluation took 0.000357 seconds
1000 transitions using 10 leapfrog steps per transition would take 3.57 seconds.
Adjust your expectations accordingly!


Iteration:    1 / 2000 [  0%]  (Warmup)
[1] "Error in sampler$call_sampler(args_list[[i]]) : "
[2] "  c++ exception (unknown reason)"                
error occurred during calling the sampler; sampling not done
Error in check_stanfit(stanfit) : 
  Invalid stanfit object produced please report bug
Calls: stan_glm -> stan_glm.fit -> check_stanfit
Execution halted