Hi,
I'm running some Stan models (using rstan). The sheer fact of opening the .stan file prompts Rstudio to throw this message in the console
sh: 1: : not found
sh: 1: 0: not found
sh: 1: : not found
sh: 1: 0: not found
After that I cannot run stan models. For example
rstan::stan_model('stan_code_2HMM.stan')
sh: 1: : not found
sh: 1: 0: not found
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
0
Failed to convert stanc.js argument 'code'!
It had type 'object' instead of 'string'.
In addition: Warning message:
In system(paste(CPP, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
error in running command
I can run the r-file wrapper and thus estimate the stan model either in vscode or using Rscript command console. Hence why I think it's a problem with Rstudio, and possibly with the interpreter and syntax highlighter (but not sure).
I'm using Rstudio 2024.12.0 Build 467. I'm pretty sure I didn't have this issue before (but could well be a combo problem with rstan).
Any idea (eg how to turn off some stuff for that not to happen)?
Thanks
Gianni