stan-dev / statastan

Stata interface for Stan.
BSD 3-Clause "New" or "Revised" License
21 stars 10 forks source link

Erasing old stan files in order to re-run a job? #23

Open glennwharrison opened 7 years ago

glennwharrison commented 7 years ago

I have encountered an issue with running StataStan, and wonder if others have the same issue. I have a workaround, but it seems likely that there is something awry with my install or some way I am calling StataStan.

For some reason the “stan” file is saved in the CmdStan directory, and when StataStan is run it processes that file rather than any new one it is told to process. This generates an issue when one has edited an error in the “stan” file and wants to just re-run it. Albeit tedious, one can automatically erase this file within Stata prior to the call to Stan (forgive the syntax, but I do not know how to make this look like Stata code; asterisks become bullets, for example):

This is a bit tedious, but does not add much overhead. Anyone encountered this?

bob-carpenter commented 7 years ago

Thanks for filing this as an issue with statastan. I hope @robertgrant sees it!

robertgrant commented 7 years ago

@glennwharrison thanks for sending me the log files. It looks like the stan.ado that is being called is an old one (https://github.com/stan-dev/statastan/commit/bfcc0ac226dc87c61444c67d0f45db0ec800c50e). I'm a bit confused about how 1.2.3 is displayed as the StataStan version number but I would suggest doing ssc uninstall stan and then ssc install stan to be sure of getting it tidied up. If you have some personal ado folders it might be worth clearing stan.ado out of there too. Let us know if there's still a problem after that.