Hi, Andrew,
Thank you for the answer. When I install StanHeaders and rstan, I get the warning:
Warning in install.packages :
unable to access index for repository https://mc-stan.org/r-packages/bin/macosx/big-sur-arm64/contrib/4.1:
cannot open URL 'https://mc-stan.org/r-packages/bin/macosx/big-sur-arm64/contrib/4.1/PACKAGES'
There is a binary version available but the source version is later:
binary source needs_compilation
StanHeaders 2.21.0-7 2.26.4 TRUE
I installed both anyway, but the model cannot be fitted. I can generate the data (using algorithm=fixed_par) but that is all. When I try to fit the model now I get:
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
parser failed badly
Also, if I exit RStudio and open it again, when I try to generate the data again (and the compiled file for the data generation already existed), I get
Error in if (!file.exists(file.rds) || (mtime.rds <- file.info(file.rds)$mtime) < :
missing value where TRUE/FALSE needed
What should I do? I found a post (Sampler won't start if adapt_delta is used: why?) where someone recommends installing development versions. Is that advisable?
Thank you again.
Alejandro.