On 9/17/12 1:03 PM, Marcus Brubaker wrote:
> I'm not sure conditioning on STAN_NO_DEBUG is appropriate here. If I
> put a print statement in a model, regardless of how I compile it, I
> would expect it to function as such.
That makes sense. That's how I first set it up.
The only reason I can imagine for printing is to
do debugging. So I imagine adding prints if things
go wrong and then taking them out when everything's
working. That should also keep the models cleaner.
> Also, is the use of ostream compatible with the R printing interface?
Yes, we'll just pass in a stream from R as Jiqiang
pointed out we're already doing for error messages from
domain errors in distributions.
I was going to set things up to use the same stream,
but I might as well follow the standard convention
of having separate print and error streams.
I should have this done soon and will check it in.
- Bob