Skip to content
Prev 31663 / 63424 Next

bug (PR#13570)

On 3/5/2009 7:10 AM, Prof Brian Ripley wrote:
I can reproduce it using y <- sin(x) instead of rnorm(100), on R-patched 
(not R-devel).
I don't see why there would be errors at those spots, but I did try 
tracing into loessf.f, and it's really a maze of code.  In case someone 
wants to follow up, it looks as though the ehg128 function returns a 
garbage value on the first call.  Working backwards through it, this is 
because the local variable s is garbage, because g(0,1) (an array, not a 
function call) is garbage at line 957, which is because it got set as 
garbage somewhere between being initialized at line 918, and line 957.
I think the problem happened at lines 950/951, but I didn't follow up to 
see why.
I agree that's the best solution.

Duncan Murdoch