Editing window shows check all the time for a corrected program


#1

Hi
This will be a simple question, I think.
I made a mistake typing a Stan program into the editing window and the check option came up in the task ribbon immediately above the window. I corrected the code but now can't see how to get back to the task ribbon giving me the "run" option. Every time I open this file it shows the check option.
Regards
Chris


#2

I think it will be a lot easier to answer this question if you can include the code from the file where you’re seeing this behavior, as well as the file name.

Even better, before posting the code — how many things can you remove from that file (OK, a copy of that file!) and still see the same behavior?


#3

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