Is there a standard editing tool for Stan ? What can I use and expect to work well with .stan files?
I use emacs generally but stan-mode does not seem to be aware of the latest cmdstan and I’m not sure how not to break my install when I update stan, with stan-mode.
That seems to work for me too, do you have a workflow for compiling the files and applying the models to the data ? I tried using eshell within emacs but that doesnt sound optimal.
best guess would be to set the directory as /cmdstan when opening stan-mode. then make -f <current-buffer> ? Then not sure how to fit to the data ?
I’d like to this this all within emacs tbh, I’m interested in your workflow
I’m pretty unsophisticated with this, but if there is an emacs solution I would love to hear it! Also, I’ve been back and forth with interfaces for a while and am settling on cmdstanpy. I compile with cmdstanpy and run the model either in a notebook or script. The nice thing is that I can also do CmdStan directly with the compiled model for things like test grad etc.
Just wanted to say that in its test suite, stan-vim checks the source of the Stan documentation and makes sure that all functions are covered in the syntax files, so the package should stay pretty up-to-date with the language. It currently covers all functions in Stan 2.24.
I use VS Code for just about everything and the extension https://marketplace.visualstudio.com/items?itemName=ivan-bocharov.stan-vscode
works pretty well and doesn’t make me leave my default text editor. It looks like it hasn’t been updated in a few years, though…
Has anyone tried to build a stan linter that can run in real time and ID errors in a model so you don’t have to get it from the compiler?