statastan icon indicating copy to clipboard operation
statastan copied to clipboard

Problems running two times from the same CmdStan directory?

Open glennwharrison opened this issue 8 years ago • 1 comments

When I run the Stata command "stan" twice, say with different models, I need to reference two different CmdStan directories. Assume I point initially to "c:\cmdstan-2.16.0" and run a Stan job. Then I want to run another model and point to the same directory. I get an error

    file c:\Users\<myname>AppData\Local\Temp\ST_ec_000001.tmp not found

I can see in a trace where this error arises, but do not know how to avoid it. One inelegant solution is to have multiple CmdStan directories, so I would access "c:\cmdstan-2.16.0_run1" for the first and "c:\smdtsan-2.16.0_run2" for the second, and there would be no issue. But then I need to regenerate these directories from a virgin "c:\cmdstan-2.16.0" directory in order to run again.

Running a trace, it seems to be related to something called `outputfile'*.csv existing or not, but that does not help me work out how to avoid the problem.

Has anyone else encountered this issue, and have a suggestion as to what I must have done wrong at some point?

glennwharrison avatar Aug 11 '17 23:08 glennwharrison

I think this has the same cause as issue #23 - but let us know if it persists. I'll leave the issue open for now.

robertgrant avatar Aug 24 '17 07:08 robertgrant