Error in compileCode(f, code, language = language, verbose = verbose)

If you install an older version of rstan then you also need to install an older version of StanHeaders

But I should emphasise that your previous errors aren’t caused by a bad installation, so changing your rstan version shouldn’t change the result

ok! I just want to try,my friend’s computer can run the result

If the model runs on older versions of rstan but not newer versions, would you be able to share the model and some data that reproduces it? Then we can debug whether something broke in the update

I have a question,how can I know which Log probability evaluates to log(0),
print?or ?