Error occurred during calling the sampler; sampling not done

Hi everyone.
First of all I’m a Mac user. I’ve got Catalina as operating system, which might be the problem.

So I get the following error message:
[1] “Error in sampler$call_sampler(args_list[[i]]) : "
[2] " c++ exception (unknown reason)”
error occurred during calling the sampler; sampling not done
Stan model ‘admit ~ dbinom(applications, p)’ does not contain samples.
Error in names(coef) <- names(start[[1]]) :
attempt to set an attribute on NULL

d <- UCBadmit
d$male <- ifelse( d$applicant.gender=="male" , 1 , 0 )
d$dept_id <- coerce_index( d$dept )

m13.3 <- map2stan(
    admit ~ dbinom( applications , p ),
    logit(p) <- a_dept[dept_id] +
    c(a_dept,bm_dept)[dept_id] ~ dmvnorm2( c(a,bm) , sigma_dept , Rho ),
    a ~ dnorm(0,10),
    bm ~ dnorm(0,1),
    sigma_dept ~ dcauchy(0,2),
    Rho ~ dlkjcorr(2)
  ) ,
  data=d , warmup=1000 , iter=5000 , chains=4 )

I just updated from Mojave, which had more serious errors, but still I’m struggling with this


Please see this post

and then also do
install.packages(“rstanarm”, type = “source”)

Shouldn’t need to install rstanarm just to get rethinking working, but if the OP is using rstanarm as well, then installing it from source is necessary at the moment.