I am simply following the documentation here:
[https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-stan.html](https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-stan.html)
​
But this code block does not write the file \`model.stan\`
​
\#+name: model-stan
\#+begin\_src stan :file model.stan
data {
int<lower=0> N;
vector\[N\] y;
}
parameters {
real<lower=0> sigma;
real mu;
}
model {
// vectorized
y \~ normal(mu, sigma);
} // final line must be blank
​
\#+end\_src