I have an error I cannot understand after trying to compile a model

Hello everyone,

I tried to compile a model for the first time, but I’ve got this error:

Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/detail/integer_log2.hpp:19:0,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/detail/int_float_pair.hpp:26,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/exponential_distribution.hpp:27,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/gamma_distribution.hpp:25,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_rng.hpp:5,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/prim/mat.hpp:276,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/rev/mat.hpp:12,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math.hpp:4,
from C:/Users/myname/R/win-library/3.6/St
In addition: Warning message:
In system(cmd, intern = !verbose) :

Show Traceback

Rerun with Debug

Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! In file included from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/detail/integer_log2.hpp:19:0,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/detail/int_float_pair.hpp:26,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/exponential_distribution.hpp:27,
from C:/Users/myname/R/win-library/3.6/BH/include/boost/random/gamma_distribution.hpp:25,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/prim/mat/prob/dirichlet_rng.hpp:5,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/prim/mat.hpp:276,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math/rev/mat.hpp:12,
from C:/Users/myname/R/win-library/3.6/StanHeaders/include/stan/math.hpp:4,
from C:/Users/myname/R/win-library/3.6/St

Show Traceback

Rerun with Debug

Error in sink(type = “output”) : invalid connection

Please also provide the following information in addition to your question:

  • Operating System: Windows 10
  • brms Version: 2.10.0

Could you post your model or the call to brms?

Hello. Yes.

my_binom_model <- brm(
right | trials(tots) ~ 1 + reps,
data = sumdata1,
family = binomial(“logit”),
file = “my_binom_model”
)

Thanks

1 Like

I just needed to update StanHeaders. That fixed it.

1 Like