With the following model (if you can even call it that):
model {
for(k in 1:10) {
print(k - 10);
}
}
The output represents what appears to be integer overflow. I am using cmdstanr_0.0.0.9008 with stan 2.23. Other relevant sessionInfo:
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
To compile and run this I am doing
test <- cmdstan_model("test.stan")
test$optimize()
Thanks,
Dan