From dmurdoch at pair.com  Fri Jan 30 14:49:07 2004
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Fri Jan 30 14:49:29 2004
Subject: [Rd] unstability when using isoreg() function (PR#6494)
In-Reply-To: <20040129111601.A2E65102B3@slim.kubism.ku.dk>
References: <20040129111601.A2E65102B3@slim.kubism.ku.dk>
Message-ID: <95ok10967tep702pqk52ouo9dc3vs0ghf4@4ax.com>

On Thu, 29 Jan 2004 12:16:01 +0100 (CET), ripley@stats.ox.ac.uk wrote
:

>iKnots was allocated one element too short.  This only overruns if the 
>sequence is monotone, as happens here for set.seed(2), N=3.  Fixed in 
>R-devel.
>
>The line 39 in isoreg.c needs to be
>
>    SET_VECTOR_ELT(ans, 3, iKnots= allocVector(INTSXP, n));

I've copied the fix over to r-patched as well.

Duncan Murdoch


[Rd] unstability when using isoreg() function (PR#6494)
Duncan Murdoch