Hi All,
After finishing sampling, I got the error message:Elapsed Time: 757694 seconds (Warm-up)
930398 seconds (Sampling)
1.68809e+06 seconds (Total)
Error in file(file, "r") : cannot open the connection
Calls: stan -> sampling -> sampling -> .local -> scan -> file
In addition: Warning message:
In file(file, "r") :
cannot open file '/var/folders/15/2v3s52zj6px1zmw2y17vvtpr0000gp/T//Rtmp1QXevN/file8506f3e5a4b': No such file or directory
Execution halted
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+unsubscribe@googlegroups.com.
It seems likely. I was hoping it was CleanMyMac then I would have some control. But I've gotten this "no file" error about 4 times now, and every time the number of missing files was the number of chains that took more than a week to run. Then I lose the fast chains too. It would be helpful if Stan wrote out each chain as it finished so I would at least get something.
Is there a way to stream the draws to disk in RStan
An optional character string providing the name of a file. If specified the draws for all parameters and other saved quantities will be written to the file. If not provided, files are not created. When the folder specified is not writable, tempdir() is used. When there are multiple chains, an underscore and chain number are appended to the file name.
For the next version of RStan, we'll check for the (continued) existence of the file before trying to read it. Although if it disappears during a weak-long run, you won't be able to see run-time problems with that chain. For now, I guess you have to specify the sample_file argument to write each iteration to the disk.