As you've observed on the R mailing lists, the easy questions
get more attention.
Like all of our minor bug fixes, it requires a few minutes
to create the issue, a few minutes to code, probably an hour
to write tests for (which should've been there in the first
place), then a few more minutes to get it code reviewed, then
as long as it takes to get it through Jenkins integration testing
without failure. But then it takes longer if we can't get
it reviewed, if someone has comments on the way it's written
and it needs to be rewritten, if another fix comes in in parallel
and they need to be merged, etc..
Overall, I'd be surprised if we could fix an issue like this
using our current process in less than several person hours
and less than forty CPU, hours (about how long our tests
take to run --- we do four cores in parallel, so that's only
ten hours wall time).
The reason we're being so Draconian on all the testing is
that we don't want "little fixes" like this one to break
anything else that matters.
I think the real danger is that we spend all of our time
effectively straightening our desks and marching in tune with
our process on issues like this one and less time on the
issues that really matter.
- Bob
On 12/15/13, 11:48 AM, Andrew Gelman wrote:
> Now I feel bad . . . I hate to waste everyone's time on this one! I did a hack using sink() in R that I found on the web, maybe that's fine, I dunno.
>
> On Dec 15, 2013, at 5:46 PM, Bob Carpenter <
ca...@alias-i.com> wrote:
>
>> I'm guessing that Andrew's running under RStan, not
>> the command line. RStan rewrites the command.hpp to
>> use R I/O and data structures rather than what the command
>> line uses. For example, it passes in the R input/output
>> streams rather than using std::cout and std::cerr.
>>
>> I opened an issue for CmdStan, which outlines three ways
>> it could be done in the code:
>>
>>
https://github.com/stan-dev/stan/issues/453
>>
>> The same sort of thing will need to be done for RStan (and
>> presumably PyStan).
>>
>> - Bob
>>
>>
>>
>>
>> On 12/15/13, 11:12 AM, Sergio Polini wrote:
>>> Il 15/12/2013 16:12, Andrew Gelman ha scritto:
>>>> Sergio:
>>>> Thanks. Actually, I'm running stan(fit=�) in the loop, so it doesn't recompile each time.