Thanks for your reply.
This is a .stan file(Bernoulli.stan) and the code is:
#>data {
int<lower=0> N;
int<lower=0,upper=1> y[N];
}
parameters {
real<lower=0,upper=1> theta;
}
model {
theta ~ beta(1,1);
for (n in 1:N)
y[n] ~ bernoulli(theta);
}
library(foo)
Sorry if this code is not formatted properly-still learning. Maybe because it's a .stan file it's doing this although it didn't do it until I accidentally added some data to it and then removed these data.
Regards