# Error when running {brms} tutorial model code in R 4.3.1

**URL:** <https://discourse.mc-stan.org/t/error-when-running-brms-tutorial-model-code-in-r-4-3-1/35637>\
**Category:** brms\
**Tags:** fitting-issues, brms\
**Created:** [June 25, 2024, 11:25am UTC](https://discourse.mc-stan.org/t/error-when-running-brms-tutorial-model-code-in-r-4-3-1/35637 "2024-06-25T11:25:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robayedavies](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@robayedavies](https://discourse.mc-stan.org/u/robayedavies)\
**Post date:** [June 25, 2024, 11:25am UTC](https://discourse.mc-stan.org/t/error-when-running-brms-tutorial-model-code-in-r-4-3-1/35637/1 "2024-06-25T11:25:24Z")

</div>

Hi

I am running Stan models through brms on a computing cluster.  
After a recent rebuild of the cluster management system, I encountered a problem in running brms code to fit models. The code has worked previously.

I am working in R 4.3.1. Loading ‘brms’ package (version 2.21.0).

To try to locate the problem, I ran the tutorial model code – from here:

> **[Bayesian Regression Models using Stan](https://paul-buerkner.github.io/brms/)**
>
> Fit Bayesian generalized (non-)linear multivariate multilevel models
> using Stan for full Bayesian inference. A wide range of distributions
> and link functions are supported, allowing users to fit -- among others --
> linear, robust linear,...

```no-highlight
fit1 <- brm(count ~ zAge + zBase * Trt + (1|patient),
            data = epilepsy, family = poisson())

```

The result is:

```no-highlight
Error in stanc(file = file, model_code = model_code, model_name = model_name, : 
  0
Semantic error in 'string', line 5, column 12 to column 13:
   -------------------------------------------------
     3: }
     4: data {
     5: int<lower=1> N; // total number of observations
                     ^
     6: array[N] int Y; // response variable
     7: int<lower=1> K; // number of population-level effects
   -------------------------------------------------

Integer literal cannot be larger than 2_147_483_647.

```

This error message is the same as the message I get running my own model code on the cluster.

I haven’t run brms on my own computer (old version of R and of brms which works fine).

Any advice on what the problem may be would be much appreciated.
